/cs50-ai-tic-tac-toe

Tic Tac Toe game with minimax and alpha-beta pruning

Primary LanguagePython

CS50 - Introduction to AI with Python

Project 0 - Tic Tac Toe


Description

Tic Tac Toe game with implemented AI, using minimax algorithm and alpha-beta pruning.

How to run

  1. Clone this repo.
  2. To start the game you need to install pygame library. So you can create virtual environment. In game directory execute: python3 -m venv .venv. Then activate venv: source .venv/bin/activate(on macOS and Linux). Finally, install requirements: pip install -r requirements.txt.
  3. Now, you can run the game: python3 runner.py.
  4. Enjoy!