public bool isGameOver(int gameId) { object game = sl.GetGameState(gameId); if (game != null && !((TexasHoldemGame)game).active) { return(true); } return(false); }
private static void GetGameState(ClientInfo client, JObject jsonObject) { var gameIdToken = jsonObject["gameId"]; if ((gameIdToken == null) || (gameIdToken.Type != JTokenType.Integer)) { throw new ArgumentException("Error: Parameters Mismatch at Get Game State."); } var response = sl.GetGameState((int)gameIdToken); SendMessage(client, response); }