Arithmetic test

You can use this form to see how the Rule Game Engine evaluates the expressions that are used in the "destination buckets" field of the rules' atoms.

For the role of bucket expressions in rule sets, see Rule set st=yntax. For the syntax and semantic of bucket expressions, and a few examples, see Bucket expression arithmetic.

All computaions are performed in set-valued arithmetic, with the final results mapped to the range [0..3] by modulo-4 arithmetic.

1. If you want any variables used in your expression to have values assigned to them (other than the default, which is an empty set), please enter the valuesbelow. (For a single value, just enter a number; for a set with more than member, just enter the numbers separated by spaces. Note though that on our board, none of our variables ever has more than value, but you can try multi-valuied vars anyway, just for fun). If a variable has no value assigned to it (as p, pc, and ps are early in each episode), just leave the input box blank.

Engine vesion: (Use 5 for the "newer" math, 4 for the older version).
p =
pc =
ps =
Nearby =
Remotest =
2. Enter the expression to be evaluated in the box below
Note: variable names are case-sensitive!
3.

[Bucket expression arithmetic] [Main page]