Conway's Game of Life implemented by a man page
Find a file
2024-12-15 18:17:37 +01:00
LICENSE Initial commit 2024-12-15 13:09:32 +01:00
mott.1 Implement using mandoc 2024-12-15 18:08:39 +01:00
README.md Update README.md with life demonstration 2024-12-15 18:17:37 +01:00

mott

Demonstration

curl https://codeberg.org/cve/mott/raw/branch/main/mott.1 | man -l -

Description

Mott the Hoople and the Game of Life -- R.E.M.

mott implements Conway's Game of Life by abusing the Turing completeness of the roff language. By default, it renders the first 24 generations of the classic glider on an 8x8 grid.

Currently, only systems that use groff are supported, meaning your macOS or BSD system will probably not work. Support for mandoc is planned however.

MOTT24(1)			 General Commands Manual		    MOTT(1)

NAME
       mott — implements Conway’s Game of Life as a manual page

DESCRIPTION
       The mott utility is a manual page that implements Conway’s Game of Life
       by abusing the Turing completeness of the roff(7) language.

24 GENERATIONS OF THE GLIDER
       |   | X |   |   |   |   |   |   |
       |   |   | X |   |   |   |   |   |
       | X | X | X |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       ‐‐‐
       |   |   |   |   |   |   |   |   |
       | X |   | X |   |   |   |   |   |
       |   | X | X |   |   |   |   |   |
       |   | X |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       ‐‐‐
       |   |   |   |   |   |   |   |   |
       |   |   | X |   |   |   |   |   |
       | X |   | X |   |   |   |   |   |
       |   | X | X |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       |   |   |   |   |   |   |   |   |
       ‐‐‐
[...]