Skip to content

kirsty-tortoise/langton-ants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langton's Ant!

A very simple Python app showing path of Langton's ant, made with Tkinter.

An ant moves on an infinite grid of squares that are coloured either black or white.

  • if on a black square it rotates 90 degrees anticlockwise
  • if it is on a white square it rotates 90 degrees clockwise It then flips the colour of the square and moves forward one square. The grid starts all white. Watch the ant wander around and see the patterns created!

Run the app by entering "python Ant.py" in the root folder.

About

Very simple Python app showing path of Langton's ant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages