/automata

Primary LanguagePython

Test

Notes

Rule was represented as a string for pretty printing, but should probably just be a number from the start.

Ran out of time to even think about optimization.

Could use some more tests.

Normally I would use a virtual env, but ran out of time.

Should check input is even integers, etc., but ran out of time.

Local setup

Python

Tested with Python 2.7.10

Clone the repo

git clone git@github.com:lucaskuzma/automata.git
cd automata

Usage

For 20 iterations of rule 110 run:

python rule.py 110 20

Testing

python tests.py