1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package Snake;


import java.awt.BorderLayout;

import javax.swing.JFrame;


public class Snake extends JFrame {

	public static void main( String[] args ) {

		Snake snake = new Snake();

	}


	public Snake() {

		Board board = new Board();

		board.setSize( board.BOARDS_WIDTH, board.BOARDS_HEIGHT );
		add( board );
		pack();
		setResizable( false );
		setLocationRelativeTo( null );
		setVisible( true );
		setDefaultCloseOperation( EXIT_ON_CLOSE );
		setTitle( "Snake (by daGrevis)" );

	}

}