예제 #1
0
        static void Main(string[] args)
        {
            Random random = new Random();
            int    x      = random.Next(1, 51);
            int    y      = random.Next(1, 31);
            Snake  snake  = new Snake(x, y); snake.showSnake();

            snake.wall();
            snake.moveSnake();
        }