From fb645cbbc5c61630c91ea4a6c04cd4bcbb838639 Mon Sep 17 00:00:00 2001 From: Markus Himmel Date: Sat, 27 Aug 2016 16:52:53 +0200 Subject: [PATCH] Minor changes --- Morris/GameMove.cs | 2 +- Morris/GameState.cs | 1 + Morris/Morris.csproj | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Morris/GameMove.cs b/Morris/GameMove.cs index 6b2e3c5..ffae968 100644 --- a/Morris/GameMove.cs +++ b/Morris/GameMove.cs @@ -91,7 +91,7 @@ namespace Morris } /// - /// Erstellt eine Kopie des GameMove mit Zusatzinformation zur Entfernung eines gegnerischen Steins zurück + /// Gibt eine Kopie des GameMove mit Zusatzinformation zur Entfernung eines gegnerischen Steins zurück /// /// Welcher gegnerische Stein entfernt werden soll /// Einen neuen Spielzug diff --git a/Morris/GameState.cs b/Morris/GameState.cs index cf2ca97..f6a0fca 100644 --- a/Morris/GameState.cs +++ b/Morris/GameState.cs @@ -322,6 +322,7 @@ namespace Morris if (move.Remove.HasValue) { Board[move.Remove.Value] = Occupation.Free; + // Hier darf kein short-circuiting verwendet werden if (playerPhase[NextToMove.Opponent()] == Phase.Moving & --currentStones[NextToMove.Opponent()] == FLYING_MAX) playerPhase[NextToMove.Opponent()] = Phase.Flying; } diff --git a/Morris/Morris.csproj b/Morris/Morris.csproj index a5a8f20..dfac97d 100644 --- a/Morris/Morris.csproj +++ b/Morris/Morris.csproj @@ -50,7 +50,6 @@ -