private void PlaygroundArea() { Playground pga = new Playground(); pga.AssignChar(); pga.DrawPlayground(); }
public void Start() { snake = new SnakeStateMachine(); pg = new Playground(); Task.Run(() => { moving(); }); while (true) { Thread.Sleep(500); Playgroundworker(); } }
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); //} }