Skip to content

LiamMZ/POR-CodingChlng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

POR-CodingChlng

Coding Challenge for POR

Tic Tac Toe

This is a tic-tac-toe command line game that you can play 1-Player against 2 different AI options or 2-Player against another human.

How To Run

Command Runs
python3 src/PlayGame.py A Game of Tic Tac Toe
python3 src/TicTacToe_test.py Test Cases

Code Details

Board

_ 1 2 3
1 X X X
2 . O .
3 . O .
Above is an example of the game board shown in command line. The default board is 3x3 with a starting index of 1.

Players

For the 1-Player mode the human is automatically the first player, with game marker X.

AI

Easy (Random) AI

This AI will randomly choose from the available moves on their turn.

Hard (Alpha Beta) AI

This AI will choose the optimal move based on the mini-max algorithm using the alpha beta pruning method.

About

coding challenge for POR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages