git clone https://github.com/lomnom/langton
cd langton
git clone https://github.com/lomnom/nncurses
g++ -std=c++2a -O3 langton.cpp -o langton
sudo cp langton /usr/local/bin/langton
cd ..
rm -rf langton
rm /usr/local/bin/langton
run langton's ant by providing rules as arguments!
langton RRLLLRLLLRRR
langton LRRRRRLLR
- q: quit
- w,a,s,d: move
- f: move twice as slowly
- g: move twice as fast
- c: step the ant
- e: step half as much
- r: step twice as much
16 million steps of LRRRRRLLR stimulated in under 3 seconds.
RRLLLRLLLRRR
Find a way to use less memory, memory usage after 67 million steps of RRLLLRLLLRRR is 324 mb.
Find a way to step faster.
Increase contrast of info text