The GameModel is currently a Singleton. This hinders the use of dependency injection with this instance, and makes testing more complex. Instead, we can still have just one instance of this object, without it being globally available by only initializing it in the application's start method.
The
GameModel
is currently a Singleton. This hinders the use of dependency injection with this instance, and makes testing more complex. Instead, we can still have just one instance of this object, without it being globally available by only initializing it in the application'sstart
method.