Пример #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);
        }
Пример #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));
        }