https://github.com/thatsinewave/langton-ant-game
Langton's Ant is a two-dimensional Turing machine invented by Chris Langton in 1986.
https://github.com/thatsinewave/langton-ant-game
good-first-bug good-first-contribution good-first-example good-first-issue good-first-issues good-first-pr good-first-pr-first-contribution good-first-project html-css html-css-javascript html-css-js thatsinewave turing turing-complete turing-completeness turing-machine turing-machine-simulator turing-machines turing-pattern turing-test
Last synced: 2 months ago
JSON representation
Langton's Ant is a two-dimensional Turing machine invented by Chris Langton in 1986.
- Host: GitHub
- URL: https://github.com/thatsinewave/langton-ant-game
- Owner: ThatSINEWAVE
- License: mit
- Created: 2024-06-19T23:13:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T23:39:28.000Z (11 months ago)
- Last Synced: 2025-01-18T05:30:50.594Z (4 months ago)
- Topics: good-first-bug, good-first-contribution, good-first-example, good-first-issue, good-first-issues, good-first-pr, good-first-pr-first-contribution, good-first-project, html-css, html-css-javascript, html-css-js, thatsinewave, turing, turing-complete, turing-completeness, turing-machine, turing-machine-simulator, turing-machines, turing-pattern, turing-test
- Language: JavaScript
- Homepage: https://thatsinewave.github.io/Langton-Ant-Game/
- Size: 164 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# [Langton's Ant Game](https://thatsinewave.github.io/Langton-Ant-Game)
Welcome to Langton's Ant Game, a fascinating simulation of an ant's movement based on simple rules.

## Overview
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.
## How to Play
1. **Start the Simulation:** Click the "Begin" button to start the simulation.
2. **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.## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)
## Features
- **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.## Contributing
If you'd like to contribute to this project, please fork the repository and create a pull request.## [Join my discord server](https://discord.gg/2nHHHBWNDw)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.