Exemplo n.º 1
0
 private bool MovingSingleRankForward(Square origin, Square destination)
 {
     return (origin.ForwardTo(destination)
             && origin.DistanceOfRanksIsOneTo(destination)
             && destination.Color == PieceColor.Empty);
 }
Exemplo n.º 2
0
 private bool MovingTwoRanksForwardFromStartingRank(Square origin, Square destination)
 {
     return (FromStartingRank(origin)
             && origin.ForwardTo(destination)
             && origin.DistanceOfRanksIsTwoTo(destination)
             && PathIsFree(origin, destination));
 }