I am workig on a snake game project. This project contain five java files.
1. Engine.java
2. Snake.java
3. GameBoard.java
4. PlayGame.java (is a JFrame)
5. Rules.java (is a JFrame and having three JButtons Play,rules,exit)
I want to add main activity in my project so that project run in a flow /as my expectation.
First i want PlayGame.java should appear and when clicking play button game should start .so how can i achieve it.