Skip to content

A Python-based Tic-Tac-Toe game with a graphical interface using Tkinter. Supports both single-player (with basic AI) and two-player modes.

Notifications You must be signed in to change notification settings

codingwithnsh/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

This is a simple Tic-Tac-Toe game built using Python and the Tkinter library. The game offers two modes of play:

  1. Single Player Mode: Play against a basic AI opponent.
  2. Two Player Mode: Play against another player locally on the same device.

Features

  • Intuitive graphical interface.
  • Single Player mode with AI opponent.
  • Reset option to restart the game.
  • Displays game status (e.g., current turn, winner, or tie).

Requirements

  • Python 3.x
  • Tkinter (usually included with Python)

How to Play

  1. Run the Python script.
  2. Select the mode (Single Player or Two Player).
  3. In Single Player mode, you play as "X" and the AI opponent plays as "O".
  4. Take turns placing your mark on the grid. First to align 3 marks in a row, column, or diagonal wins!
  5. Click "Reset" to start a new game.

Enjoy the game!

About

A Python-based Tic-Tac-Toe game with a graphical interface using Tkinter. Supports both single-player (with basic AI) and two-player modes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages