Exemple #1
0
        private Robot RobotForMoveTest(ProgramCardType cardType)
        {
            int card = GetCardOfType(cardType);
            var position = new Coordinate {X = 1, Y = 0};
            var robot = new Robot { Position = position, Facing = Orientation.Right };
            robot.DealCard(card);
            robot.PlaceCard(card, 1 /* register */);
            var game = new Game(new Map {Squares = Maps.GetMap(Maps.MapLayouts.ScottRallyMap)}, new List<Robot> {robot});
            game.Initialize();

            return robot;
        }