[][src]Trait cellwars::UserBot

pub trait UserBot {
    fn run_round(&mut self, world_state: &WorldState);
}

A bot defined by the user

This trait should be implemented by users and should contain all of their bot's logic

Required methods

fn run_round(&mut self, world_state: &WorldState)

Run a particular round of the game.

The implementation of this method must guarantee that at most one action is emitted per cell.

Arguments

  • world_state - the current state of the world
Loading content...

Implementors

Loading content...