gio-del / Eriantys-Board-Game

A Java Implementation of the Eriantys Board Game as the Software Engineering Final Project A.Y. 2021/22
3 stars 2 forks source link

Game: do you use singleton? #6

Closed ingconti closed 2 years ago

ingconti commented 2 years ago

pls explain net advantages.

gio-del commented 2 years ago

In our opinion using a singleton simplify the share of the same instance of game which is used by the Action of the Character to perform. If this is a bad practice, we are at the very beginning of the implementation and fixing it is not a big deal.

ingconti commented 2 years ago

better to discuss in person... maybe Tuesday after lesson?? :)

gio-del commented 2 years ago

Perfect!

ingconti commented 2 years ago

removed at all.