Example #1
0
        public static void Main()
        {
            ConsoleWindow.CustomizeConsole();
            Wall   wall   = new Wall(150, 40);
            Food   food   = new FoodDollar(wall);
            Snake  snake  = new Snake(wall, food);
            Engine engine = new Engine(wall, snake, food);

            engine.Run();
        }
Example #2
0
 private void GetFoods()
 {
     food[0] = new FoodDollar(wall);
     food[1] = new FoodAsterisk(wall);
     food[2] = new FoodHashtag(wall);
 }