コード例 #1
0
ファイル: GameStateBase.cs プロジェクト: Musashi178/Quarto
        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));
        }