Beispiel #1
0
 public bool IsRotationPossible(PieceBase piece)
 {
     piece.Turn();
     if (_pieceInsideBoardSpecification.IsSatisfiedBy(piece))
     {
         //Todo bear in mind interva
         bool isCollision = FigureCollision(piece);
         return(!isCollision);
     }
     else
     {
         //out of the board
         return(false);
     }
 }