Exemplo n.º 1
0
        private static bool DetectIsWinState(GameStateBase gameState)
        {
            Debug.Assert(gameState != null, "gamestate != null");

            var fullLines = gameState.PlayingBoard.GetAllLines().Where(l => l.All(s => s != null));
            return fullLines.Any(IsWinLine);
        }
Exemplo n.º 2
0
        private static bool DetectIsWinState(GameStateBase gameState)
        {
            Debug.Assert(gameState != null, "gamestate != null");

            var fullLines = gameState.PlayingBoard.GetAllLines().Where(l => l.All(s => s != null));

            return(fullLines.Any(IsWinLine));
        }