예제 #1
0
        public Plateau(int x, int y)
        {
            X = x;
            Y = y;

            DrawPlateau();

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