MartianZoo / solarnet

Solarnet, an open-source game engine for the board game Terraforming Mars. Pets, a specification language for game component behaviors in said game.
Apache License 2.0
15 stars 2 forks source link

`ELSE` #22

Open kevinb9n opened 1 year ago

kevinb9n commented 1 year ago

We have a OR b. There are a small number of situations where a ELSE b would be useful. This says that you must do a unless you absolutely cannot, in which case you must do b.

For example the recent rule change for the prelude turn makes it something like PlayCard<Class<PreludeCard>> ELSE (15, -PreludeCard)

Note that you still get to choose when to execute the a ELSE b task, so you could affect whether a is possible or not that way.