This is the classic Bagels number-guessing game - but done in Streamlit and leveraging the Streamlit Chat components.
- I will think of a {NUM_DIGITS}-digit number.
- Each digit is unique.
- You will try to guess what it is in {MAX_GUESS} guesses or less.
The clues I give (one or more depending on situation) are...
When I say | That means |
---|---|
Bagels | None of the digits are correct. |
Pico | One digit is correct but in the wrong position. |
Fermi | One digit is correct and in the right position. |
Run directly on the Internet via published app URL: https://st-bagels-game.streamlit.app/
Run locally via streamlit python component.
- Python 3.9+
- streamlit
- web browser
- copy bagels-streamlit.py to your computer
- in terminal:> pip install streamlit
- in terminal:> streamlit run bagels-streamlit.py
- open web browser to localhost link shown in terminal
Contributors names and contact info
- David Jackson
- GitHub
- 0.1
- Initial Release
This project is free for all to use.
Inspiration, code snippets, etc.