Skip to content
A Java and LibGDX implementation of Langton's Ant
Java
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
core
desktop
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

LangtonsAnt

A Java and LibGDX implementation of Langton's Ant

Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells.

Langton's Ant on Wikipedia

This repository is home to my attempt at a Java implementation of Langton's ant, made as a project for fun.

The program, as it stands, allows you to edit the configuration of the grid and position of the ant to run different simulations of the ant.

I'm not terribly familiar with LibGDX currently, nor am I accomplished in being entirely efficient in my code 100% of the time, so forgive me for shortcomings, especially when it comes to managing the objects through dependency injection.

When it comes to importing this project into your IDE, roughly follow these steps:

  1. Set up your IDE for LibGDX: Here
  2. Either download the project or clone the repository through Github.
  3. Import into your IDE through the build.gradle file. You may potentially have to create a local.properties folder defining the position of your Android SDK through the declaration of an sdk.dir variable. Other problems with building should be pointed out by your IDE, and you should be able to figure them out.

Alternatively, there is a JAR in the releases of this repository if you want to just run the program. *JAR is out of date, so it runs significantly slower than the frame unlocked version -- will update at some point"

You can’t perform that action at this time.