private void SkipNextIfSurrounded(Bot bot, BotAction action)
        {
            if (bot.IsSurrounded())
            {
                return;
            }

            bot.Consciousness.SkipActions(1);
        }
示例#2
0
        public Consciousness()
        {
            for (int i = 0; i < Size; i++)
            {
                _actions[i] = new BotAction(i);
            }

            UpdateHash();
        }
示例#3
0
        public int Param(BotAction botAction)
        {
            var ind = (botAction.Index + 1) % Size;

            return((int)_actions[ind].Action);
        }