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