checker game created using cocos creator 2.4.5. Game server is implemented using nakama. And bots are written in js and host in node
.
├── client #cocos creator (TS)
├── DraftkingAI # bot code (JS)
├── Server # server (goLang)
├── test
├── tools
└── README.md
To run server:
install docker
cd server
buildandrun.sh
To run client : change SERVER_REMOTE in livecasinoapp.ts to localhost we need cocos creator v 2.4.5
DranftKingAI : Contians the bot code. To start the project run File change the SERVER_IP to local host in config.js file
cd DraftkingAI
npm i
sh botcreation.sh
sh draftkingai.sh
Note: Make sure to create users before running bot files to avoid login issue. Users can be created using nakama console or curl command
curl "127.0.0.1:7350/v2/account/authenticate/email?create=true" --user "defaultkey:" --data '{"email": "+254123457008@chezaent.co.ke", "password": "12345678","create": true}'
bot emails are present inside the Config.js file