mirror of
https://github.com/TwoFX/Morris.git
synced 2026-02-04 04:52:52 +00:00
Minor changes
This commit is contained in:
@@ -91,7 +91,7 @@ namespace Morris
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <param name="remove">Welcher gegnerische Stein entfernt werden soll</param>
|
/// <param name="remove">Welcher gegnerische Stein entfernt werden soll</param>
|
||||||
/// <returns>Einen neuen Spielzug</returns>
|
/// <returns>Einen neuen Spielzug</returns>
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ namespace Morris
|
|||||||
if (move.Remove.HasValue)
|
if (move.Remove.HasValue)
|
||||||
{
|
{
|
||||||
Board[move.Remove.Value] = Occupation.Free;
|
Board[move.Remove.Value] = Occupation.Free;
|
||||||
|
// Hier darf kein short-circuiting verwendet werden
|
||||||
if (playerPhase[NextToMove.Opponent()] == Phase.Moving & --currentStones[NextToMove.Opponent()] == FLYING_MAX)
|
if (playerPhase[NextToMove.Opponent()] == Phase.Moving & --currentStones[NextToMove.Opponent()] == FLYING_MAX)
|
||||||
playerPhase[NextToMove.Opponent()] = Phase.Flying;
|
playerPhase[NextToMove.Opponent()] = Phase.Flying;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
<Compile Include="GameResult.cs" />
|
<Compile Include="GameResult.cs" />
|
||||||
<Compile Include="GameState.cs" />
|
<Compile Include="GameState.cs" />
|
||||||
<Compile Include="RandomBot.cs" />
|
<Compile Include="RandomBot.cs" />
|
||||||
<None Include="LICENSE" />
|
|
||||||
<Compile Include="IGameStateObserver.cs" />
|
<Compile Include="IGameStateObserver.cs" />
|
||||||
<Compile Include="IMoveProvider.cs" />
|
<Compile Include="IMoveProvider.cs" />
|
||||||
<Compile Include="GameMove.cs" />
|
<Compile Include="GameMove.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user