This project was created as the Java homework assignment for the Basics of Programming course at the Budapest University of Technology and Economics (BME).
The goal of the homework was to practice the things learned in the subject. Therefore, the homework must covered the following topics:
- Swing-based GUI
- either a menu bar and one of the classes: JTable, JTree, JComboBox
- or using low-level graphics routines (Graphics class)
- Collections framework
- File output and input using Java serialization
- Unit tests (JUnit)
This project is a Java-based Snake game developed as part of a university homework assignment. The goal was to meet the requirements of an introductory programming course, where object-oriented design, architecture, and advanced software engineering principles were not yet part of the curriculum. The focus was on basic Java programming, working with packages, handling resources, and creating a simple but functional graphical application.
- Java
- AWT / Swing
- JUnit
Before running the game from the terminal, make sure the out directory exists and that required resource files (fonts, audio) are copied there.
Steps:
mkdir -p out- Create output directoryxcopy res out /E /Y- Copy resource filesjavac -d out src/entity/*.java src/menu/*.java src/main/*.java- Compile the source codejava -cp out main.Main- Run the game