private static bool IsWithinPuzzle(this PlacedPiece placedPiece, IPuzzle puzzle) { return(placedPiece.OccupiedSquares.All(sq => sq.IsWithinPuzzle(puzzle))); }
public InternalRow(PlacedPiece placedPiece) { Name = placedPiece.Name; Colour = placedPiece.Colour; OccupiedSquares = placedPiece.OccupiedSquares; }