Skip to content

vyadh/langtons-ant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langton's Ant

A exploration of JavaFX with FXML, Lambda's and Steams for implementing Langton's Ant.

This version is a branch from the main project intended to help train people for learning lambdas and streams.

Features

  • Multiple ants
  • Multiple colours (levels of grey)
  • Heat-map style shading (by repeating patterns, see example below)
  • Arbitrary turn strategies (such as LLRR or RRLLLRLLLRRR)

Examples

Once you are done with the examples on Wikipedia, here are some other nice ones to try. Some of these take a while to work, so set the FPS setting to max.

  • LRLRLLRLRLRLRLRLRLRLLRLRLRLRLRLRLRLLRLRLRLRLRLRLRLLRLRLRLRLRLRLRLLRLRLRLRLRLRLRLLRLRLRLRLR

Screenshot

Screenshot with repeated Langton's Ant pattern

About

Langdon's Ant in JavaFX with FXML, Lambdas and Streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published