private void SkipNextIfSurrounded(Bot bot, BotAction action) { if (bot.IsSurrounded()) { return; } bot.Consciousness.SkipActions(1); }
public Consciousness() { for (int i = 0; i < Size; i++) { _actions[i] = new BotAction(i); } UpdateHash(); }
public int Param(BotAction botAction) { var ind = (botAction.Index + 1) % Size; return((int)_actions[ind].Action); }