therewillbecode / poker-maison

🂺 A Multiplayer Poker App Crafted with Haskell and React
308 stars 34 forks source link

Send a list of possible valid actions to client from server #7

Closed therewillbecode closed 4 years ago

therewillbecode commented 4 years ago

Every time a player can act the payload for the new game state should include a list of valid possible actions to remove the need to duplicate the action validation logic on the front end.