Exemplo n.º 1
0
        private void SkipNextIfSurrounded(Bot bot, BotAction action)
        {
            if (bot.IsSurrounded())
            {
                return;
            }

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

            UpdateHash();
        }
Exemplo n.º 3
0
        public int Param(BotAction botAction)
        {
            var ind = (botAction.Index + 1) % Size;

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