Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chocoonestrogen/simulations
A collection of simulations made in C
https://github.com/chocoonestrogen/simulations
c langton-ant langtons-ant simulation simulation-game simulations
Last synced: 2 days ago
JSON representation
A collection of simulations made in C
- Host: GitHub
- URL: https://github.com/chocoonestrogen/simulations
- Owner: chocoOnEstrogen
- License: cc0-1.0
- Created: 2024-06-19T17:46:48.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T18:18:53.000Z (5 months ago)
- Last Synced: 2024-10-30T02:18:42.113Z (16 days ago)
- Topics: c, langton-ant, langtons-ant, simulation, simulation-game, simulations
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Simulations
A collection of simulations made in C.
## Table of Contents
- [Simulations](#simulations)
- [Contributing](#contributing)
- [License](#license)## 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:
1. At a white square, turn 90° right, flip the color of the square, move forward one unit.
2. 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:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/YourFeature`).
3. Make your changes.
4. Commit your changes (`git commit -m "feat(feature-name): add new feature"'`).
5. Push to the branch (`git push origin feature/YourFeature`).
6. Create a new Pull Request.Please ensure your pull request adheres to the [Code of Conduct](./.github/CODE_OF_CONDUCT.md).
## License
This project is licensed under the CC0 1.0 License. See the [LICENSE](./LICENSE) file for details.