SPA inter-process communication & syncronization
Resources
You must watch all videos before the lecture.
Objectives
-
3 points
Rock Paper Scissors I
Two players can join a game with the same mechanism as i outlined in TicTacToe.
-
1 point
Rock Paper Scissors II
Score shows if and only if both players selected an option
-
1 point
Rock Paper Scissors III
Player score count is visible at all times and increases on a win.
-
1 point
Rock Paper Scissors IV
Upon concluding a game, automatically restart the next one
-
1 point
Rock Paper Scissors V
Use Icons (Heroicons or Flowbite) on Buttons for selecting an option. Overall nice look.
Today we will create a multiplayer game in LiveView.
Make sure your game is hosted under `/rock-paper-scissors.
You will want to start the same way as i did for TicTacToe and then adapt your code to the classical Rock Paper Scissor game.
We leave the final design completely up to you (good project practice) but check the objectives above to not miss any required functionality.