Bots
Every Arbitas game can be played against bots, with no bot code to write. The platform’s search bot plays any game the rules DSL can express, straight from its rules.
How the search bot plays
Section titled “How the search bot plays”The search bot is a Monte Carlo tree search: it plays many quick random games forward from the current position, keeps the moves that lead to wins most often, and repeats while it has time. It works on any game because it needs only what every engine answers: the legal moves, the state after a move, and the result.
It never sees hidden information. A bot that could look at the other players’ hands or the order of the deck would be cheating. Instead, before each playout, the bot asks the engine for a sample: a full state that matches everything its seat can see, with the hidden parts dealt again at random. It searches over many such samples, so it plays from what its seat knows, as a player would. (This is an information-set search.) Each bot also has its own random stream, separate from the match’s, so its sampling can’t affect or reveal the match’s shuffles.
Making it stronger
Section titled “Making it stronger”Random playouts are slow to find good moves in long games. A rules file can carry a bot heuristic: a score for an unfinished position and preferences between moves. The search bot uses it to cut playouts short and try strong moves first. It never changes the rules. See the bot heuristic to write one, or let AI draft it for you from the game’s Bot page; a drafted heuristic is kept only if the guided bot beats the unguided one over seeded matches.
Where bots play
Section titled “Where bots play”- In lobbies. The host of a lobby can seat search bots in free seats, and they’re ready at once. Rated lobbies have no bots.
- For a player who drops out. In a live casual match, when a player’s last connection goes, a 90-second grace period starts. If they haven’t come back by then, a search bot takes their seat over and plays it until they return; reconnecting, or making a move, gives the seat back. Each takeover and return is recorded in the match’s log, so a replay shows exactly who made each move. A bot doesn’t stand in for the last player still playing, and seats in rated or asynchronous matches are never taken over.
- In playtests. The portal’s playtest seats the search bot in any seat, and can seat a bot of your own.
Your own bots
Section titled “Your own bots”You can write your own bot and seat it in the portal’s playtest, to compare it with the search bot. It sees exactly what a player in its seat would: its seat’s view, its legal moves, and samples of the hidden state, never the real state. See Bring your own bot.
Your own bots can’t yet play in hosted matches; only the search bot plays there.