programming snake in c# with console
I'm trying to make a snake in the console to keep me in training in c #. I have a problem in the movement. To test I wanted to do so by pressing the letter "a" would shift the "food" on the X I noticed that in terms of graphics, but does not move through a Console.Write is incremented. Can you give me a hand? I am attaching the main classes, world food Main: namespace Snake { class Program { static void Main(string[] args) { char s; World mondo = new World(20, 10); do { s = char.Parse(Console.ReadLine()); mondo.update(); mondo.drawWorld(); } while (s == 'a'); Console.ReadLine(); } } } World: n
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.