/janken

Rock-Paper-Scissors

Primary LanguageJavaScript

janken

Rock-Paper-Scissors

API

  • 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
    }
    

RUNNING

sbt 'run -local.doc.root=src/main'

Run the frontend:

Go to src/js/ yarn install yarn start