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

            DrawPlateau();

            MoveManager = new MoveManager(Points);
        }
Esempio 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;
                }
            }
        }