A simple, one-screen Tic Tac Toe game built with Streamlit. Two players click alternately in the same browser tab. Scores persist for the session.
-
Two players take turns clicking on the 3×3 grid.
-
Player X always goes first.
-
The first to line up three symbols horizontally, vertically, or diagonally wins.
-
Scores are tracked for the current session.
-
Hit Reset Board to start a new game, or Reset Scores to clear session stats.
git clone <your-repo-url>
cd tictactoe-streamlit
pip install -r requirements.txt
streamlit run app.py
Then open the URL shown (usually http://localhost:8501).
- Push this repo to GitHub.
- Go to https://share.streamlit.io/
- Click Deploy App → connect your GitHub repo.
- Select
app.pyas the entry file and deploy. - Copy the deployed URL and put it in your GitHub README so people can play with one click.
pip install -r requirements.txt
streamlit run app.py --server.address 0.0.0.0 --server.port 7860Forward the port (e.g., 7860) and open the preview link.
Click here to play Tic Tac Toe in your browser:
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or contributions, open an issue or contact me.