Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

A collection of simulations made in C

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.