I am working on a simple university project, which consists of a simple arcade JavaFX video game. I decided to create the ping pong game. The game code must be done using 2 design patterns. I used the Factory pattern to create the game so that I would be able to add more games to the project later. But for such a small project I can't seem to find a way to include another design pattern. Any design pattern ideas are greatly appreciated. My code design is the following:
Main.java (client class that displays the chosen game)
Game.java (methods interface)
GameFactory.java (Factory that creates games)
PingPong.java (ping pong game class)
Aucun commentaire:
Enregistrer un commentaire