Skip to content

megz420/Tic-tac-toe-Game

Repository files navigation

Tic-tac-toe-Game

game exe file : https://drive.google.com/drive/folders/182_geDtWiTErm7mPA4bSbUeieWtAAw2r

Tic Tac Toe Game

Overview

This is a Tic Tac Toe game implemented in Python using the Pygame library. The game features several modes:

  • Player vs. Player
  • Player vs. Computer
  • Computer vs. Computer

Players can also select the difficulty level for the computer (Easy, Medium, Hard), which adjusts the depth of the Minimax algorithm used by the AI.

Features

  • Multiple Game Modes: Choose between playing against another player, playing against the computer, or watching two computers play against each other.
  • Difficulty Levels: Select the difficulty level for the computer opponent, which influences the AI's performance.
  • User Interface: Interactive buttons for mode and difficulty selection, along with a restart button.
  • AI: Minimax algorithm with alpha-beta pruning for computer moves.

Requirements

  • Python 3.x
  • Pygame library

You can install the required library using pip:

pip install pygame

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages