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); }
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)); }