package com.qdmmy6.snake.app;
import javax.swing.JFrame;
import com.qdmmy6.snake.Snake;
import com.qdmmy6.snake.SnakeFrame;
import com.qdmmy6.snake.SnakeMap;
public class MainApp {
public static void main(String[] args) {
SnakeMap map = new SnakeMap();
Snake snake = new Snake(map);
map.setSnake(snake);
JFrame frame = new SnakeFrame(map);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
|
|