private bool HasWinningRow() { return(BoardLayout.Rows() .Select(row => row.GetFieldsIn()) .Any(IsWinningLine)); }
private bool HasWinningDiagonal() { return(BoardLayout.Diagonals() .Select(diagonal => diagonal.GetFieldsIn()) .Any(IsWinningLine)); }
private bool HasWinningColumn() { return(BoardLayout.Columns() .Select(column => column.GetFieldsIn()) .Any(IsWinningLine)); }