https://gitlab.synchro.net/main/sbbs/-/commit/32d243e9f8ba8778cef98958
Modified Files:
xtrn/utopia/utopia.js
Log Message:
Encapsulate the rules, not the game functions
I anticipate I'll want to support tracking/iterating and providing multiple sets of rules that the user can choose from and sysops might want to provide their own. And high score lists should be specific to the set rules used to play the game. So the *rules* should have been encapsulated (and were not).
However, the game functions were encapsulated via the Utopia object and
we'll never have multiple instances of this Utopia object, so just get rid
of that (and over 600 required uses of 'this.that' syntax).
Whew! That's more like it. Yes, the script-global namespace is all polluted with variables and objects now, but this is better suited to my taste.
--- SBBSecho 3.35-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)