next up previous
Next: 13.6.2 The rule window. Up: 13.6 Setting the selection Previous: 13.6 Setting the selection

13.6.1 Methods for setting a rule.

The rule can be set in a variety of different ways,

``e'' -reset to null (all rule table entries=0), the program then reverts to the prompt above (#13.6).

``m``-set the ``majority'' rule.

``f'' - set to the ``game of life`` rule (or quasi ``life``, if k is less than 9 but greater than 4),

``d'' - in decimal (for k<=5).

``r'' - at-random (the default).

``b'' - as bits in a 1d or 2d graphic array using the mouse or keyboard.

``h'' - in hex (in a mini ``spread sheet``).

``p'' - a repeat of the last rule set for the giver neighbourhood.

``l'' - loaded from a ``*.rul`` file.

Once set, the rule remains current and can be amended by resetting bits (bits-b), or resetting half bytes (hex-h). For example, after setting the ``majority'' rule, backtrack to #13.6 and change the ``end bits'' in the rule table, resulting in some interesting ``bi-stable'' dynamics. Resetting the rule to null (``empty-e``) allows a clean slate for setting the rule as bits or in hex. The various methods are described in detail in #13.7-14 below.