Source

ALPACA / eg / neighbourhood2.alp

1
2
3
4
5
6
7
8
neighbourhood Moore
  (< > ^ v ^> ^< v> v<);
neighbourhood Foo
  (^ v < >);
state Space
  to Thing when 1 in Moore Thing;
state Thing
  to Space when 3 Space.