bbjubjub2494 / conway.sc

Functional Conway's Game of Life implementation using immutable sets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terminal-based Conway's Game Of Life Simulator

Features

  • Can be run with Lanterna's terminal emulator
  • Pass arbitrary initial grid in RLE notation
  • Infinite grid
  • View can scroll

Setup

Install Ammonite, then invoke ./conway at the command line. You should see the classic Gosper Glider Gun appear and start evolving.

Usage

Try ./conway -p RPentomino to see the famous methuselah, or ./conway -p Copperhead to see the (relatively) recently arrived spaceship. Use ./conway 'b2o$o2bo$b2o' to supply your own RLE pattern. For more options, check the built-in help ./conway --help.

History

Originated from a Python gist of mine inspired by this conference.

About

Functional Conway's Game of Life implementation using immutable sets

License:MIT License


Languages

Language:Scala 100.0%