/langton-turmite-cpp

a remake of my processing version of turmite with c++ & sdl (a whole lot faster)

Primary LanguageC++

Summary

I remade my processing version of langton's turmite in C++ with SDL. This version only lets you spawn one ant at a time in the center of the screen. However, it is much faster than the processing version. Video animation here

How it works

The program will ask you for a movement pattern when you first run it. See explanation given in the processing version above.

Controls

SPACEBAR: Toggle pause

Gallery

Movement pattern: LLRRRLRRRRR
demo

Movement pattern: LRRL
demo

Movement pattern: RRRLRLLLLLLRRRRL
demo

Movement pattern: RLLLLLLLRRRRRLRLLRL
demo

Movement pattern: RRRLRLLLLLLRRRRL
demo

Customizable options under defs.h

WIDTH: Window width
HEIGHT: Window height
CELLSIZE: Pixel size of each grid
STEPSPERFRAME: How many steps to evaluate before animating a frame