Skip to content

ffleming/cellular_automata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CellularAutomata

This is yet another cellular automata implementation. Public API is liable to break until 0.2.0.

Installation

Add this line to your application's Gemfile:

gem 'cellular_automata'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cellular_automata

Usage

cell [options] RULE
    -w, --width WIDTH                Set width
    -h, --height HEIGHT              Set height
    -s, --scale SCALE                Factor by which to scale game board
    -c, --cell-width WIDTH           Factor by which to scale cells
                                     Use 1 for an 'LED' look
                                     Use 2 for no borders around cells
                                     or choose anything in between
    -f, --full-screen                Full screen
    -v, --version                    Print version information
        --help                       Display this screen

RULE is a standard Life Rule in the format S.../B... The / is optional, and it doesn't matter which comes first.

cell_console (a console version with simple ASCII output) also exists, but isn't near as interesting!

Development

Install gosu dependencies:

% brew install sdl2 libogg libvorbis

Contributing

  1. Fork it ( https://github.com/ffleming/cellular_automata/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Another cellular automata implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published