From 3fa3274df677bdea9f5eb8eacfa1051045725004 Mon Sep 17 00:00:00 2001 From: Toby Cathcart Burn Date: Sat, 14 Aug 2021 19:45:46 +0100 Subject: [PATCH] admit that black sometimes wins --- FiveDChessDataInterface/DataInterface.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FiveDChessDataInterface/DataInterface.cs b/FiveDChessDataInterface/DataInterface.cs index 70f3bf7..32390d8 100644 --- a/FiveDChessDataInterface/DataInterface.cs +++ b/FiveDChessDataInterface/DataInterface.cs @@ -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"); @@ -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"); @@ -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");