C# Class BalloonsPop.Validation.UserInputValidator

Concrete implementation of the IUserInputValidator interface, using regular expression.
Inheritance: IUserInputValidator
Afficher le fichier Open project: Baloons-Pop-4/Main

Méthodes publiques

Méthode Description
IsValidUserMove ( string playerMove ) : bool

Returns true when the provided string is a valid player move.

Private Methods

Méthode Description
HasCorrectLength ( string playerMove ) : bool

Returns true if the player move has the appropriate length.

IsValidCommand ( string playerMove ) : bool

Returns true if the player move matches the specified pattern.

IsValidRowMove ( char playerMove ) : bool

Returns true if the row coordinate of the player move falls within the allowed range.

Method Details

IsValidUserMove() public méthode

Returns true when the provided string is a valid player move.
public IsValidUserMove ( string playerMove ) : bool
playerMove string The player move as string.
Résultat bool