Skip to content

jsliang0417/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe with Minimax/Alpha-Beta Pruning

Tic-Tac-Toe Project

  1. main.py - Including all the helper functions and Minimax/Alpha-Beta Pruning Algorithms

Usage

  1. Run main.py by typing following command in terminal:

    1. If you want to play against the AI with Minimax algorithm, then run:
        python3 main.py --method minimax
    1. If you want to play against the AI with Alpha-Beta Pruning algorithm, then run:
        python3 main.py --method ab-pruning

Acknowledgements

Code reference cited: Dr. Ngan Le's Lecture note: Lecture 9 - Game Tree.

About

Solving Tic-Tac-Toe with MiniMax and Alpha-Beta Pruning Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages