Live experiment
Eight snakes.
Four colors.
Connecting to shared world…
Compare with the Rule 110 experiment ↗
How energy snakes work
Eight snakes, two per color, start with 100 energy tiles scattered in a small central circle. Smaller snakes move more frequently than larger snakes, passing freely through their own bodies. Speed decreases smoothly with body length, from about 60 moves per second for a single tile down to a minimum of about 36 moves per second for very large snakes. All neighboring tiles are traversable. White energy is the first target. Targets balance travel distance against average distance from every occupied enemy body tile: score = travel distance − half the average enemy distance. Lower scores win, so a less crowded target can beat a closer one. Same-color snakes pass through each other freely, with no biting, cutting, pursuit, or head avoidance. Without energy, each snake hunts the largest other-color snake, reconsidering its chosen snake every 30 simulation ticks. Each snake selects its largest eligible opponent. The same distance and crowding score selects a body segment within that chosen snake. Avoidance has first priority: within eight tiles of an enemy head, a snake chooses the move with the greatest separation from the nearest enemy head. It keeps evading until twelve tiles away. Among equally safe moves, recent-position memory discourages reversals and revisiting the same area. Repeated positions trigger a brief exploration phase before resuming target pursuit. Outside that range, it pursues its target while leaving head clearance.
White-energy rewards depend on size: the largest snake earns one new segment per tile, the next earns two, then three, and the smallest earns four. Equal-sized snakes receive equal rewards. Meals add length only. Every segment has a rounded three-tile-wide footprint. New length builds quickly at the tail, first following recorded path and then extending behind its last heading. Up to 128 segments build per update, with remaining growth queued for subsequent updates. Every tick, each body segment takes the previous segment’s position and the old tail position clears.
Every 100 generations, ten energy tiles spawn in a small scattered clump within 100 grid tiles of the average occupied snake position. Wrapping edges are included in the average. Occupied cells are excluded; spawning is skipped if no free clump can fit or no snakes remain.
A head crossing an enemy body cuts it at contact. The severed section disappears, with no growth awarded to the attacker and no white energy dropped. Only eating white energy awards growth. A consumed head removes that snake. Simultaneous claims rotate priority each tick. Shared worlds run at about 60 ticks per second. Scroll to zoom and drag to pan.