Ejemplo n.º 1
0
        public Plateau(int x, int y)
        {
            X = x;
            Y = y;

            DrawPlateau();

            MoveManager = new MoveManager(Points);
        }
Ejemplo n.º 2
0
        public void Run()
        {
            foreach (var command in Commands)
            {
                switch (command)
                {
                case ('L'):
                    Direction = MoveManager.TurnLeft(this);
                    break;

                case ('R'):
                    Direction = MoveManager.TurnRight(this);
                    break;

                case ('M'):
                    Point = MoveManager.Move(this);
                    break;
                }
            }
        }