예제 #1
0
            protected override void GoHomeWobbling()
            {
                var r = new Random();

                while (Console.CursorTop < 20)
                {
                    Thread.Sleep(500);
                    var maxSteps = DrunkLevel.CalculateMaxSteps();
                    Movements.MoveRight(r.Next(1, maxSteps));
                    Movements.MoveDown(r.Next(1, maxSteps));
                    Movements.MoveLeft(r.Next(1, maxSteps));
                    Movements.MoveDown(r.Next(1, maxSteps));
                }
            }
예제 #2
0
 private void GoHomeStraight()
 {
     Movements.MoveDown(20);
 }