Chess.Data.Piece.Pawn.CheckForLegalDirection C# (CSharp) Method

CheckForLegalDirection() private method

private CheckForLegalDirection ( Move move ) : void
move Chess.Data.Entities.Move
return 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.");
        }