Example #1
0
 private static bool IsVictoryReached(MinefieldCellCollection @this) =>
 @this
 .All(cell => cell.State != MinefieldCellState.Closed) && @this.Where(cell => cell.HasMine)
 .All(cell => cell.State == MinefieldCellState.Marked);