Rule Simulator v0.9.11.9.3

Blah blah blah I just want to jump in: here if UI installed

Sample deployments:

What it does

This loads in card text at parses it at startup to determine effects. Custom or brand-new cards can work as long as the parsing is effective.

How functional is it?

Parsing and verb implementation are sufficient to get through recent starter decks

Medium-turn design goal is educational

Not present


Technical Details Below


API

The game state is sent with JSON that looks mostly like you would expect, each player having a region and each region having the entitites within it listed.

A player nominally doesn't see private information intended for the other player only.

At all times the game will be expecting input from exactly one person (not necessarily the turn player). That player will have their choices enumerated in a JSON object.

There are a few ways of interacting:

Known bugs

How to write a test case

An example test case is in tests/once-per-turn-2.in.

Indicate what card DB you're including. Writing custom cards for test cases is fine, and in many cases makes testing easier if you can isolate weird effects.

Your test case and custom cards can be included.


Card database

The game will read cards in a few different formats, with more being added.

Contributing / Technical Details

Card effects are parsed from text into a SolidEffect object. This object is then processed by the game engine.

Adding new effects will mostly just be getting the parsing to work, using already existing verbs. In some cases new verbs may be needed but the verbs are very low-level so this really won't be needed very much.

Other stuff

What's next?