Skip to content

Junru281/AI-Game-TeeKo-Player-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

AI-Game-TeeKo-Player

Welcome! 😁

This is a AI TeeKo player Samaritan applying minimax algorithm.

What is TeeKo?

TeeKo is a game between two players on a 5*5 board. Each player has four markers denoting as r for red and b for black.

Begining with black, two players take turns to placing markers (the "drop phase") until all markers are on the board. If after the drop phase, neither player has won, they continue move one marker at a time to an adjacent spot only (including left, right, up, down and diagonals one spot) until one player wins.

The final goal is to get four markers with the same color in a row horizontally, vertically, and diagonally.

How to start the game?

Download the game.py file and run it in a IDE or python3 game.py in your terminal.

How to interpret the board?

As you can see from the picture above, a position is composed of a vertical and horizontal character. For instance, B4, C1 are all valid positions.

image

Who start first?

There are two cases to start the game.

One Case is when AI Samaritan start first. You will see Samaritan already made a move if AI start first as the picture below shows.

Screenshot 2024-03-27 at 4 44 47 PM

Another Case is when you as a user start first. You will see no one make a move if you chose to start first as the picture below shows.

Screenshot 2024-03-27 at 4 44 16 PM

Reminder

Our Samaritan is smart. Don't look down at her.

About

An AI player named Samaritan to play the game TeeKo interactively with the user. Applying Minimax algorithm. Project from CS540 Introduction to Artificial Intelligence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages