4 ms·
In the context of a simple game, global state is good design. (Maybe less so in Python than in some other languages, because Python’s variable scoping is a bit
by blueblimp 7y ago
In the context of a simple game, global state is good design. (Maybe less so in Python than in some other languages, because Python’s variable scoping is a bit odd.) This applies even in a commercial setting.
If the objective is to teach the benefits of avoiding global state, it may be more effective to pick a project type for which that is a correct design choice.