Rock-Paper-Scissors
-
PUT /newplayer
Response:
{ playerId: Int }
-
POST /makemove
Request:
{ playerId: Int, move: Int }
Response:
{ roundId: String }
-
GET /score?playerId=&roundId=
Response:
{ score: Int, wins: Int, losses: Int }
sbt 'run -local.doc.root=src/main'
Run the frontend:
Go to src/js/
yarn install
yarn start