Skip to content

hmd7777/Python-XO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

XO Game in Python with Tkinter

Overview

This project is an implementation of the classic Tic-Tac-Toe (XO) game in Python, featuring a graphical user interface created with Tkinter. Players can choose to compete against another player or face an AI opponent implemented using the minimax algorithm.

Features

  • Two Modes of Play: Choose to play against a human opponent or challenge our AI.
  • Graphical User Interface: Built using Tkinter for an easy and interactive gaming experience.
  • Minimax Algorithm: The AI opponent is powered by the minimax algorithm, making it a challenging adversary.

How to Play

  • Start the game by running python xo_game.py in your terminal.
  • Choose your game mode: Player vs Player or Player vs AI.
  • Click on the cells of the game grid to make your move.
  • The game will announce the winner or a tie when the game ends.

Requirements

  • Python 3.x
  • Tkinter library (usually comes with Python)

Installation

Clone this repository to your local machine: https://github.com/hmd7777/Python-XO.git

About

Graphical XO game against another player or a bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published