Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Form Validation #18

Open
evanwht opened this issue Jul 25, 2020 · 0 comments
Open

Game Form Validation #18

evanwht opened this issue Jul 25, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@evanwht
Copy link
Owner

evanwht commented Jul 25, 2020

The game form should run validation before sending to the web server. According to the current rules the validation rules are:

  • there should be 4 unique players
  • half time scores should not exceed 5 points
  • winning scores should be between 10 and 15,
  • winning scores should be at least 2 more than the losing except when the winning score is 15.

This should be done in a way that allows for new sets of rules to be applied easily. Other rule sets could include 2 player games, games that don't have 2 different halves, and games that end at scores other than 10.

An alert should display with steps to fix the issues when the form fails validation. There could also be something visual that draws the users attention to the invalid fields. Options include highlighting or outlining in red or helpful tool tip with a failure reason.

@evanwht evanwht added enhancement New feature or request good first issue Good for newcomers labels Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant