bad chessh bot using js-chess-engine
src | ||
.env.sample | ||
.eslintrc | ||
.gitignore | ||
.prettierrc | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
example chessh bot
this is a simple CheSSH bot written in TypeScript using js-chess-engine. it's not very good.
the bot "entrypoint" is at /src/api/index.ts
.
environment
BOT_TOKEN: the token generated by CheSSH for which the bot will be deployed
CHESSH_MOVE_PATH: the path to POST an attempted move in the form "<from square><to square>" according to the CheSSH contract to the game with id :gameId.