Simple implementation of a bot for kcapp
.
const skill = require('./bot-skill');
const bot = require('kcapp-bot/kcapp-bot')(<bot player id>, "<server ip>", <server port> /*, <api url> */);
bot.playLeg(<leg id>, skill.EASY);
There are two types of bots
Skill based will use one of the given skills defined in bot-skill and throw based on random.
Mock / Replay based will grab a random leg played by the configured player, and use those throws as it's own for the given leg. This will work best for players with a lot of legs played