Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nerdsupremacist/snake
A small snake game to showcase MVC, Multithreading and the Lanterna Library
https://github.com/nerdsupremacist/snake
Last synced: about 9 hours ago
JSON representation
A small snake game to showcase MVC, Multithreading and the Lanterna Library
- Host: GitHub
- URL: https://github.com/nerdsupremacist/snake
- Owner: nerdsupremacist
- License: mit
- Created: 2016-01-06T18:33:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-06T20:06:33.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T13:33:12.745Z (about 1 month ago)
- Language: Java
- Size: 984 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake - Lanterna Game
A small snake game to showcase MVC, Multithreading and the Lanterna Library
This showcases many of the topics covered in my tutorial. I will later on delete this repo
and add it to https://github.com/mathiasquintero/RandomStuffHere's the UML Model:
![Modell Not available](https://github.com/mathiasquintero/Snake/blob/master/UML-Modell.png "UML-Model")
In case you're wondering what is part of the MVC-Pattern:
![Modell Not available](https://github.com/mathiasquintero/Snake/blob/master/MVC.png "UML-Model")
By the UML Model we see that the Field inherits from both the GameObject and the GameObjectObserver. That's because it acts as an adapter between the other Model Classes and the Controller. The Field listens for changes in the other Model Classes and re-routes them to the it's own observers, i.e. the Controller. And the other way around, it receives Commands from the controller, to change the model and re-routes those to the Snake, i.e. to change the Trajectory of the Snake.
![Modell Not available](https://github.com/mathiasquintero/Snake/blob/master/Relationships.png "Non-UML Model")