Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.37 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.37 KB

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:

  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.

License

This project is licensed under the CC0 1.0 License. See the LICENSE file for details.