8000 GitHub - chocoOnEstrogen/simulations: A collection of simulations made in C
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chocoOnEstrogen/simulations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A collection of simulations made in C

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

0