BalloonsPop.Validation.UserInputValidator.IsValidCommand C# (CSharp) Méthode

IsValidCommand() private static méthode

Returns true if the player move matches the specified pattern.
private static IsValidCommand ( string playerMove ) : bool
playerMove string The player move as string.
Résultat bool
        private static bool IsValidCommand(string playerMove)
        {
            return ValidationRegex.Match(playerMove).Length > 0;
        }