Giter VIP home page Giter VIP logo

simulations's Introduction

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.

simulations's People

Contributors

0x7ffed9b08230 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.