Skip to content

Commit

Permalink
admit that black sometimes wins
Browse files Browse the repository at this point in the history
  • Loading branch information
penteract committed Aug 14, 2021
1 parent dd96b54 commit 3fa3274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FiveDChessDataInterface/DataInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public GameState GetCurrentGameState()
return GameState.EndedWhiteWon;
}
if(whoWon==1){
return GameState.EndedWhiteWon;
return GameState.EndedBlackWon;
}
else{
Console.WriteLine("Unexpected Data - gs is 1(ended with checkmate) but winning player '{whoWon}' is not 0 or 1");
Expand All @@ -231,7 +231,7 @@ public GameState GetCurrentGameState()
return GameState.EndedWhiteWon;
}
if(whoWon==1){
return GameState.EndedWhiteWon;
return GameState.EndedBlackWon;
}
else{
Console.WriteLine("Unexpected Data - gs is 3(forfeit) but winning player '{whoWon}' is not 0 or 1");
Expand All @@ -244,7 +244,7 @@ public GameState GetCurrentGameState()
return GameState.EndedWhiteWon;
}
if(whoWon==1){
return GameState.EndedWhiteWon;
return GameState.EndedBlackWon;
}
else{
Console.WriteLine("Unexpected Data - gs is 5(timeout) but winning player '{whoWon}' is not 0 or 1");
Expand Down

0 comments on commit 3fa3274

Please sign in to comment.