- This is simple Langton's ant simulation written by TheAmmiR and IceFox-L.
- There is a grid. Each cell of The Grid can be filled in any color. The Grid is populated by ant. Ant is implemented as one cell of The Grid. Each move the ant fills the cell he's standing on with next declared color and turns left or right. If cell is filled with last set color, the ant fills it with default one.
-
- First, you have to open
colors_config.txt
and fill it. The template is already in the file - it looks likeIf you do not set the direction, it is choosing randomly before starting each game. You can see list of possible colors inCOLOR - DIRECTION COLOR - DIRECTION COLOR COLOR
colorreader.py
- Open
ants.py
. You can see some variables named in UPPER_SNAKE_CASE. You can freely edit it.
- Run
ants.py
- First, you have to open