Ejemplo n.º 1
0
        private MoveAction GetMoveActionInSamePosition(Pac pac, Cell cell)
        {
            if (pac.IsInSamePosition() && pac.SpeedTurnsLeft != 5)
            {
                Io.Debug($"Pac Id {pac.Id} : Same position {pac.Position}");
                var action = GetMoveIfInSamePosition(pac, cell);
                if (action != null)
                {
                    return(action);
                }
            }

            return(null);
        }
Ejemplo n.º 2
0
        private MoveAction GetMoveActionInSamePosition(Pac pac, Cell cell)
        {
            if (pac.IsInSamePosition() && pac.AbilityCooldown != 9)
            {
                Io.Debug($"Pac Id {pac.Id} : Same position {pac.Position}");
                var action = GetMoveIfInSamePosition(pac, cell);
                if (action != null)
                {
                    return(action);
                }
            }

            return(null);
        }