A simple Tic Tac Toe game built using NumPy for game logic and Streamlit for UI.
- 2-player game
- NumPy-based winner detection
- Interactive Streamlit UI
- Restart game option
pip install -r requirements.txt
python tic_tac_toe.pypip install -r requirements.txt
streamlit run tic_tac_toe_streamlit.py- Python
- NumPy
- Streamlit
- Clone the repository:
git clone https://github.com/Aditya0105singh/tic-tac-toe-numpy.git
cd tic-tac-toe-numpy- Create virtual environment:
python -m venv .venv
.venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Two players: X and O
- Players take turns entering row (0-2) and column (0-2)
- First to get 3 in a row wins
- Game ends in a draw if board is full
Enjoy! 🎮