From: Erik V. <eri...@hc...> - 2008-10-31 20:18:31
|
> > I didn't find it worthwhile to invent an XML > > structure to make all these rules configurable. > > I agree -- since Java can load classes dynamically, it is > better to write > code in a real programming language than trying to extend XML to be a > programming language. > > A long time ago I used the same approach for a Java implementation of > Cosmic Encounter (the cards all have arbitrary powers that > alter the rules > of the game). New cards could be loaded by just including additional > jars in a directory, and the game loaded all the cards that > were defined > there. Perhaps Rails could be structured such that support > for new games > could be delivered the same way, once the core supported all the > mechanisms that any of the games might need. Yes, that is more of less my goal as well. I regularly find myself adding more hooks to load classes dynamically. Erik. |