Skip to content

Aditya0105singh/tic-tac-toe-numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe using NumPy & Streamlit

A simple Tic Tac Toe game built using NumPy for game logic and Streamlit for UI.

Features

  • 2-player game
  • NumPy-based winner detection
  • Interactive Streamlit UI
  • Restart game option

How to Run

Console Version

pip install -r requirements.txt
python tic_tac_toe.py

Streamlit UI Version

pip install -r requirements.txt
streamlit run tic_tac_toe_streamlit.py

Tech Stack

  • Python
  • NumPy
  • Streamlit

Installation

  1. Clone the repository:
git clone https://github.com/Aditya0105singh/tic-tac-toe-numpy.git
cd tic-tac-toe-numpy
  1. Create virtual environment:
python -m venv .venv
.venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Game Rules

  • 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! 🎮

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages