Skip to content

About

A game project I wrote for fun.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upgraded Version

This project has been fully rewritten from scratch as a clean-code, test-driven pygame application — with a graphical interface, four AI difficulty levels, three game modes (Human vs Human, Human vs AI, AI vs AI), per-player timers, game history with replay, and 310 unit tests.

Tic-Tac-Toe with Pygame


Python Tic-Tac-Toe

A classic Tic-Tac-Toe game implemented in Python with a clean command-line interface and a challenging AI opponent. This project was a joy to create, and I hope you have fun playing it!

Features

  • Two Game Modes: Play against another person or challenge the computer.
  • Score Tracking: The game keeps score across multiple rounds.
  • (Unbeatable?) AI: The computer opponent uses the minimax algorithm to play a perfect game. Can you force a draw? 🤔
  • Interactive Gameplay: The game guides you with clear instructions at every step.

How to Run

  1. Make sure you have Python 3 installed.

  2. Clone this repository to your local machine.

  3. Navigate to the project directory "code" in your terminal.

  4. Run the game with the following command:

    python main.py

Enjoy the game!

About

A game project I wrote for fun.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages