C# 클래스 BalloonsPop.Validation.UserInputValidator

Concrete implementation of the IUserInputValidator interface, using regular expression.
상속: IUserInputValidator
파일 보기 프로젝트 열기: Baloons-Pop-4/Main

공개 메소드들

메소드 설명
IsValidUserMove ( string playerMove ) : bool

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

비공개 메소드들

메소드 설명
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.

메소드 상세

IsValidUserMove() 공개 메소드

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