gdamjan edited this page Sep 13, 2010 · 2 revisions
Clone this wiki locally

The project consists of the following files:
– src/webserver.erl – a mochiweb handler, it long-holds each HTTP connection until results are available from the other player
– src/gameserver.erl – wait’s for 2 players, confronts them and notifies the sleeping connection of the results
– src/rpssl.erl – implements the game logic
– src/uuid.erl – UUID generator
– static/index.html – static file
– static/game.html – almost static file

Depends on Mochiweb (not included), JQuery (included).