Welcome to Langton's Ant Game, a fascinating simulation of an ant's movement based on simple rules.
Langton's Ant is a two-dimensional Turing machine invented by Chris Langton in 1986. It takes place on an infinite grid of square cells, each of which can be either white or black. The ant moves according to the color of the cell it is currently on and follows these rules:
- At a white square, turn 90° right, flip the color of the square, and move forward one unit.
- At a black square, turn 90° left, flip the color of the square, and move forward one unit.
Over time, the ant's seemingly chaotic movements produce a predictable pattern.
- Start the Simulation: Click the "Begin" button to start the simulation.
- Control the Simulation:
- Pause/Resume: Click the "Pause" button to pause or resume the simulation.
- Adjust Speed: Use the speed input box to set the speed of the simulation (in milliseconds) and click "Apply" to update the speed.
- Interactive Simulation: Watch the ant move and create patterns on the grid.
- Speed Control: Adjust the speed of the simulation to observe different behaviors.
- Responsive Design: The game interface is responsive and works well on various screen sizes.
If you'd like to contribute to this project, please fork the repository and create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.