I’ve updated Autocell to version 2. In addition to cleaning up the code, adding better error handling, and (I hope) improving the interface slightly, I’ve made the following changes to the rules:
- You can now set cells to be drawn as images. Defining the image a cell should use is as simple as making a rule of “draw <CELLTYPE> <URL>” (See Langton’s Ant for example.)
- The directions northeast, northwest, etc. have been added, as have fareast, farnorth, etc. The “far____” directions refer to cells two steps away.
- The special noun “neighbors” now includes the NULL cells at the border.
- New verbs “cellAt” and “neighborsOf” have been added. They both take a 2-by-1 array ([x,y]) of the cell in question as their right-parameter. The “cellAt” verb returns the type of the cell in question, while “neighborsOf” returns the set of neighbors.
- A new two-parameter verb “+” has been added. Right now it only operates on the 2-by-1 coordinate arrays discussed above. (Example: [1,-10] + [23,7] = [24,-3])
- In the same vein, a new special noun called “thisPos” has been added. It is the coordinates of the cell being evaluated.
That’s all!

4 Comments
Goopy water:
EMPTY->BLUE: north = BLUE
BLUE->EMPTY: south = EMPTY
EMPTY->BLUE: not(west = EMPTY) and northwest = BLUE
BLUE->EMPTY: not(south = EMPTY) and southeast = EMPTY
EMPTY->BLUE: not(east = EMPTY) and northeast = BLUE and not(fareast = EMPTY)
BLUE->EMPTY: not(south = EMPTY) and southwest = EMPTY
EMPTY->BLUE: east = BLUE and not(fareast = EMPTY) and cellAt (thisPos + [2,-1]) = BLUE
BLUE->EMPTY: not(south = EMPTY) and southwest = BLUE and cellAt (thisPos + [-2,1]) = EMPTY
EMPTY->BLUE: west = BLUE and not(farwest = EMPTY) and cellAt (thisPos + [-2,-1]) = BLUE
BLUE->EMPTY: not(south = EMPTY) and southeast = BLUE and cellAt (thisPos + [2,1]) = EMPTY
this game is very cool and all but i find it wont work on internet explorer
still awsome though
Thanks! Also, I know about the IE thing. It’s because this is HTML5, and IE doesn’t support that yet.