Skip to content

Aryan-Garg-dev/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Classic Tic-Tac-Toe Game

Overview

This is a simple implementation of the classic Tic Tac Toe game using the Python Tkinter library for the graphical user interface. The game allows a player to compete against a computer opponent.

Features

  • Graphical user interface using Tkinter.
  • Player vs. Computer gameplay.
  • Randomized computer moves.
  • Win, Draw, and Play Again functionalities.
  • Simple and intuitive design.

Screenshot 2024-01-21 184300

How to Play

  1. Run the script (single_player.py).
  2. The game window will appear.
  3. Click on the squares to make your move (X).
  4. The computer will automatically make its move (O).
  5. The game will determine the winner or declare a draw.
  6. Click "Play Again" to reset the game.

Files

  • single_player.py: The main Python script containing the game code.
  • README.md: This file, provides information about the game.

Dependencies

  • Python 3.11
  • Tkinter library (standard library in Python)

Notes

  • The computer's moves are randomized, providing a basic level of gameplay.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages