注册
登录
模型可视化
>>
Snake
>>
返回
项目作者:
nikasakandelidze
项目描述 :
Snake game. Language using Clean Code principles, and using Java language.
高级语言:
Java
项目主页:
项目地址:
git://github.com/nikasakandelidze/Snake.git
创建时间:
2020-05-19T09:53:46Z
项目社区:
https://github.com/nikasakandelidze/Snake
开源协议:
下载
Snake
Well known game Snake, implemented fully in Java language.
Used technologies :
MVC
Swing(for front of the application)
Java 8 features( Functional interfaces, Lambdas … etc )
Main classes
:
Main.java - creates and connects Model View and Controller, sets up Key Listeners for game.
Model.java - encapsulates logic of the game(Inside we have helper classes like Logic.java,State.java..etc)
View.java - encapsulates front of the application using Swing lib.Draw board,Snake on each iteration.
Controller.java - Listens to model, whenever model is changed notifies view to update board/snake locations.