Developer Uses Object-Oriented Design to Build Multiple Board Games With AI

A developer describes how a board game with constantly expanding rules, INSIGNIA, became hard to build with AI because each new rule forced a rework of the existing structure. To solve this, the developer split the design into separate parts for cells, units, players, cards, and a referee that alone handles the rules. Each game now inherits from an abstract referee class and only fills in its own rules, leaving the shared engine untouched. The developer reports that a shared engine of about 400 lines supported six games, and that building these was faster than building INSIGNIA alone. The article argues that object-oriented design helps software cope with changing requirements by structuring objects to interact rather than hard-coding features.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in