Minor changes

This commit is contained in:
Markus Himmel
2016-08-27 16:52:53 +02:00
parent aa517fbd43
commit fb645cbbc5
3 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ namespace Morris
}
/// <summary>
/// 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
/// </summary>
/// <param name="remove">Welcher gegnerische Stein entfernt werden soll</param>
/// <returns>Einen neuen Spielzug</returns>

View File

@@ -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;
}

View File

@@ -50,7 +50,6 @@
<Compile Include="GameResult.cs" />
<Compile Include="GameState.cs" />
<Compile Include="RandomBot.cs" />
<None Include="LICENSE" />
<Compile Include="IGameStateObserver.cs" />
<Compile Include="IMoveProvider.cs" />
<Compile Include="GameMove.cs" />