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

Support changing Rules on the fly #28

Open
sellnat77 opened this issue Sep 8, 2019 · 0 comments
Open

Support changing Rules on the fly #28

sellnat77 opened this issue Sep 8, 2019 · 0 comments
Assignees
Labels
API REST Api related work Backend Python flask work DBDesign Database design / architechture Front end React work

Comments

@sellnat77
Copy link
Member

sellnat77 commented Sep 8, 2019

Backend

  • Backend needs to support a POST to /game/rules with a payload of ```{ "game_id":"", "rule_key":"", "new_rule":"" }````
  • The POST will update the db entry for the corresponding game and the corresponding rule
  • Backend is also responsible for notifying front end clients (socket event?)

Frontend

  • Rule panel needs to retrieve the listing on game join
  • Rule panel needs to display the rules in a more pleasing manner
  • Rule panel will have some indicator that the rule consequence is edittable (button maybe for mvp)
  • Rule consequence will become a prepopulated <input /> that the user can edit
  • OnSubmit, the new rule is POSTed to the backed in the above format
    • Frontend and all other frontend clients need to be responsive to the new change, most likely listen for a socket event
@sellnat77 sellnat77 added API REST Api related work Backend Python flask work DBDesign Database design / architechture Front end React work labels Sep 18, 2019
@sellnat77 sellnat77 assigned sellnat77 and unassigned arshiamasih Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API REST Api related work Backend Python flask work DBDesign Database design / architechture Front end React work
Projects
None yet
Development

No branches or pull requests

2 participants