Beispiel #1
0
        public void Run()
        {
            Start.WaitOne();


            for (int i = 0; i < 30; i++)
            {
                var millisecondsTimeout = _random.Next(50, 500);
                Thread.Sleep(millisecondsTimeout);
                lock (_locker)
                {
                    Console.ForegroundColor = (ConsoleColor)Row;
                    Console.SetCursorPosition(i, Row);
                    Console.Write("*");
                }
            }
            Winner.Set();
        }