RaijnAU / toy-robot

Deployed:
https://gifted-meninsky-03d86f.netlify.com/
1 stars 0 forks source link

Player vs Player #12

Open stevensacks opened 5 years ago

stevensacks commented 5 years ago

For this step, we're going to use your free AWS account and use AWS AppSync to send game state from one user to another.

The code will need to be modified to be one player per client. Each player will control their robot.

To make this easier, one player's game will be in "control" of the game logic. Building the game logic on the backend is harder, so for now, it'll be master/slave. First one to connect is master, second one is slave.

When master starts the game, slave gets notified. Then the game is played just like it was on your one machine, except that game updates are sent across the wire.

Extra Credit: After each game, the winner will be able to enter their initials. We'll keep the top 10 scores on the leaderboard.