Skip to content

vaishnavikalluri/Tic-tac-toe-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Tic-Tac-Toe

A sleek, high-performance Tic-Tac-Toe game built with Python and Tkinter. Challenge yourself against an unbeatable AI powered by the Minimax Algorithm.


Features

  • Unbeatable AI: Implements the classic Minimax algorithm to ensure the computer always plays the optimal move.
  • Modern Dark Theme: A high-contrast, premium dark interface designed for focus and aesthetic appeal.
  • Interactive UI: Smooth hover effects, responsive grid, and clear visual winning indicators.
  • Modular Design: Clean separation of concerns between game logic, theme configuration, and UI.

Project Structure

  • main.py: The entry point and UI controller using Tkinter.
  • engine.py: The core game logic and AI implementation.
  • theme.py: UI constants and sophisticated color palettes.

How to Run

  1. Requirement: Ensure you have Python 3.x installed.
  2. Execute: Run the following command in your terminal:
    python main.py

Controls

  • Left Click: Place your X in an empty cell.
  • Reset Game: Clear the board and start a new match.

Built with Leanring for a premium gaming experience.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages