Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jumitti/streamlit_turing_machine
Just another Turing Machine... but on Streamlit
https://github.com/jumitti/streamlit_turing_machine
streamlit streamlit-webapp turing-machine turing-machine-simulator
Last synced: 3 days ago
JSON representation
Just another Turing Machine... but on Streamlit
- Host: GitHub
- URL: https://github.com/jumitti/streamlit_turing_machine
- Owner: Jumitti
- Created: 2024-07-02T14:39:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T16:50:10.000Z (7 months ago)
- Last Synced: 2024-07-09T21:23:01.166Z (7 months ago)
- Topics: streamlit, streamlit-webapp, turing-machine, turing-machine-simulator
- Language: Python
- Homepage: https://turing-machine.streamlit.app/
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Welcome to this little Turing machine laboratory [![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://turing-machine.streamlit.app/)
## Game of Life
The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway. It is a
zero-player game, meaning its evolution is determined by its initial state, requiring no further input. In this
Streamlit application, you can simulate the Game of Life with up to 3 colors. You can also adjust the rules
governing the birth and survival of cells.Rules of Game of Life:
- **Birth**: A dead cell with exactly three live neighbors becomes alive.
- **Survival**: A live cell with two or three live neighbors survives.
- **Death**: In all other cases, a cell dies or remains dead.## Langton's Ant
Langton's Ant is a two-dimensional universal Turing machine with very simple rules but complex emergent behavior.
In this Streamlit application, you can simulate Langton's Ant with up to 8 ants. The only modification from the
original rules is that if two ants collide on the same cell, they repel each other and move in different directions.Rules of Langton's Ant:
- Each ant follows simple rules based on the color of the cell it's on:
- **White**: Turn right 90 degrees.
- **Other colors**: Turn left 90 degrees
- The grid is infinite, and ants can move in any direction.