theammir / langtons-ant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Python Version PyPi

  • Info

    This is simple Langton's ant simulation written by TheAmmiR and IceFox-L.
  • Rules

    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.
  • Running

    • First, you have to open colors_config.txt and fill it. The template is already in the file - it looks like
      COLOR - DIRECTION
      COLOR - DIRECTION
      COLOR
      COLOR
      
      If you do not set the direction, it is choosing randomly before starting each game. You can see list of possible colors in colorreader.py
    • Open ants.py. You can see some variables named in UPPER_SNAKE_CASE. You can freely edit it.
    • Run ants.py

About

License:MIT License


Languages

Language:Python 100.0%