andromedado / Automata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automata

A pixel warfare, near-zero-player game. Like Conway's Game of Life, but with violence.

See it in action at www.automata.website.

Details

Automata is written in native HTML5 Canvas for high performance. Cells belong to specific "broods" (owners of cells). Every turn, all the cells execute their turns in random order which consist of two steps:

  1. Check if there are three or more enemy cells of the same owner surrounding this cell. If so, this cell is consumed.
  2. Check if there are enemy cells nearby. If so, fight them (50% chance of winning or losing).
  3. Otherwise, try and do one of two things:
  4. Divide (duplicate) into a nearby empty cell
  5. Move into a nearby empty cell

The game continues until one cell dominates the board. You can pause gameplay and "paint" more cells by using the mouse.

About


Languages

Language:JavaScript 73.2%Language:CSS 26.8%