> The game logic is just ~5900 lines of SQL. While this sounds a lot, it’s definitely less than the original C source code which does the same in about 9000 lines!
I recommend trying prolog for yourself to find out. It's pretty mind-bending what it can accomplish and how concise the resulting programs tend to be. I've never needed more than a few hundred lines.