Skip to content

Commit

Permalink
fix simple game result settings
Browse files Browse the repository at this point in the history
  • Loading branch information
christiannagel committed May 25, 2024
1 parent be17bc9 commit 533a115
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected override SimpleColorResult GetCoreResult()

protected override void SetGameEndInformation(SimpleColorResult result)
{
bool allCorrect = result.Results.All(r => r == ResultValue.CorrectColor);
bool allCorrect = result.Results.All(r => r == ResultValue.CorrectPositionAndColor);

if (allCorrect || _game.LastMoveNumber >= _game.MaxMoves)
{
Expand Down

0 comments on commit 533a115

Please sign in to comment.