Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 688 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 688 Bytes

Game of life

This is an implementation of Conway's Game Of Life as a jq filter.

Enjoy.

pretty animation of the game of life playing.

Why?

Why not?

How?

jq is a filter language for JSON data. It takes JSON input, and produces JSON output. I wrote a filter program that takes in the previous board state, and outputs the next board state.

Then I put it through some post-processing to produce the pretty picture above (runpretty.sh). Without that post-processing, it looks more like this (run.sh):

less pretty animation of the game of life playing.