Exemplo n.º 1
0
 private bool MovingTwoRanksForwardFromStartingRank(Square origin, Square destination)
 {
     return (FromStartingRank(origin)
             && origin.ForwardTo(destination)
             && origin.DistanceOfRanksIsTwoTo(destination)
             && PathIsFree(origin, destination));
 }
Exemplo n.º 2
0
 private bool MovingTwoRanksAndOneFile(Square origin, Square destination)
 {
     return (origin.DistanceOfRanksIsTwoTo(destination)
             && origin.DistanceOfFilesIsOneTo(destination));
 }