README.md
Simulations
A collection of simulations made in C.
Table of Contents
Simulations
Langton's Ant
This is an implementation of Langton's Ant in C. Langton's Ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. The ant moves according to the rules below:
At a white square, turn 90° right, flip the color of the square, move forward one unit.
At a black square, turn 90° left, flip the color of the square, move forward one unit.
This simulation uses the following characters to represent the ant and the grid:
.
represents a white square.#
represents a black square.A
represents the ant.
Contributing
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes.
- Commit your changes (
git commit -m "feat(feature-name): add new feature"'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
Please ensure your pull request adheres to the Code of Conduct.
License
This project is licensed under the CC0 1.0 License. See the LICENSE file for details.