From: John A. T. <ja...@ja...> - 2008-10-30 22:53:55
|
On Thu, 30 Oct 2008, Erik Vos wrote: > 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. -- John A. Tamplin ja...@ja... 770/436-5387 HOME 4116 Manson Ave Smyrna, GA 30082-3723 |