Méthode | Description | |
---|---|---|
IsValidUserMove ( string playerMove ) : bool |
Returns true when the provided string is a valid player move.
|
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.
|
public IsValidUserMove ( string playerMove ) : bool | ||
playerMove | string | The player move as string. |
Résultat | bool |