SPA inter-process communication & syncronization

April 13, 2026 (2 weeks and 3 days ago)
DANA 325 A E C G D F B

Resources

You must watch all videos before the lecture.

Tic Tac Toe - 2 Player Game (23 min) Play TicTacToe

Objectives

  • Rock Paper Scissors I

    Two players can join a game with the same mechanism as i outlined in TicTacToe.

    3 points
  • 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.

    1 point

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.