- Install dependencies with
npm install
- Start the app with
npm run start
Now you can visit localhost:3000
from your browser.
Now you can visit localhost:4000 from your browser.
You will be using https://smartplay.afiniti.com/v1/play/
API in order to play with CPU.
You can send the history of all your plays at the end of the endpoint like this:
https://smartplay.afiniti.com/v1/play/R
https://smartplay.afiniti.com/v1/play/RP
https://smartplay.afiniti.com/v1/play/RPP
https://smartplay.afiniti.com/v1/play/RPPS
#...etc