acpennington / GoatController

The next great ygo sim
1 stars 2 forks source link

Add sidedecking and ability to play 2/3 match #362

Open acpennington opened 2 years ago

acpennington commented 2 years ago

This will take substantial effort but is of course very important. Steps:

  1. The gamestate needs to keep track of the game count. E.g. ACP: 1, pre: 1, draws: 2.
  2. After a concession, the game count is updated.
  3. If neither player has 2 wins, go to sidedecking.
  4. After sidedecking, reset the gamestate (with updated decks).

On AWS, a socket connection via lambda/api gateway can only last 120 minutes. Between games, it would be a good idea to refresh the connection in order to reset the timer without affecting the users.