Esempio n. 1
0
        private void PlaygroundArea()
        {
            Playground pga = new Playground();

            pga.AssignChar();
            pga.DrawPlayground();
        }
Esempio n. 2
0
 public void Start()
 {
     snake = new SnakeStateMachine();
     pg    = new Playground();
     Task.Run(() => { moving(); });
     while (true)
     {
         Thread.Sleep(500);
         Playgroundworker();
     }
 }
Esempio n. 3
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello World!");
     Playground playground = new Playground();
     //SnakeStateMachine snake = new SnakeStateMachine();
     //Console.WriteLine(snake.DirectionNames);
     //while (true)
     //{
     //    snake.changeddirection(Console.ReadKey());
     //    Console.WriteLine(snake.DirectionNames);
     //}
 }