-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Good evening, for a homework we checked for uses of Design Patterns, so here are some recommendations to include Design Patterns.
https://github.com/Kleito23/PatronesDiseno/tree/main/LearnJavaSnakeGame
Firstly, Singleton, since you only have one instance of QuestionManager, you can use this design pattern to make sure there's only one.
Secondly, Strategy, there are many ways that the snake moves, so you can use the design pattern strategy .
Lastly, Observer, in board there are methods that check if the apple is eaten or if the snake crashed into itself or a wall, Observer is a way that makes it more comprehensible of the methods that observes the changes and updates the game.
Karabosithole
Metadata
Metadata
Assignees
Labels
No labels