HTML and CSS Reference
Figure 5-9. Player 1 moves
After the second player makes a selection, the results are displayed immediately to
both players, as shown in Figure 5-10 .
Figure 5-10. Player 2 moves
In a “real” rock-paper-scissors game, after each round you want to declare a winner.
For the sake of keeping this demo simple and the source code focused, we do not include
Creating the Game
and was written by Jeff Mesnil. This library is included in the distribution for this topic,
ActiveMQ message broker.
containing our application logic index.html and rps.js , respectively.