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