Chapter 8

Production Rules Implementation in 1849

Robert Zubek

8.1 Introduction

This chapter presents implementation details of the production rule system used in the game 1849. The system’s main design goals were enabling quick iteration via a data-driven approach and good performance on a variety of hardware, down to significantly underpowered tablet devices.

First, we discuss the details bottom up, from the world model, through rule implementation, up to the overall rule system that manipulates them. Then, in the second half, we examine the performance consequences of these design choices, as well as lessons learned in the process of implementing the system.

8.2 Game Mechanics and Production Rules

1849 is a city building and management game ...

Get Game AI Pro 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.