Chess.Data.Piece.Pawn.CheckForLegalDirection C# (CSharp) Méthode

CheckForLegalDirection() private méthode

private CheckForLegalDirection ( Move move ) : void
move Chess.Data.Entities.Move
Résultat void
        private void CheckForLegalDirection(Move move)
        {
            if (move.RowChange != LegalDirectionByTeam())
                throw new Exception("You are moving in the wrong direction for this pawn's team.");
        }