Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.46 KB

README.md

File metadata and controls

15 lines (11 loc) · 1.46 KB

langtons-ant

this is a simple visualization of langton's ant that i made using pygame. to make it a little more interesting i added two more colors and a function that allows the ant to move diagonally too. the spawn position of the ant is random and it warps around the window which creates really cool effects. the color scheme can be switched by specifying a theme with four colors and selecting it in the main function.

previews

traditional version:

traditional langton's ant generated image with four colors pink version
blue version purple version

diagonal movement on one color:

langton's ant generated image with four colors and diagonal movement on one color pink version
blue version purple version