Skip to content

kepy97/AIPallenghuzhi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artificial Intelligence

This is the pallanghuzhi game code. Pallanguzhi is a two player game. It is a sister game to mancala which is popular in AI since a lot of agents were created to play mancala. Pallenguzhi differs slightly in its rules when compared to mancala, regardless, it’s still a counting game.

AI Agent: This projects work with different agents playing the game “Pallanguzhi”. The agents employed the algorithms: Greedy, Min-Max, Min-Max with alpha-beta pruning, Genetic Algorithm and A3C. Each agent played against another agent to test how well the different heuristics (strategies) helped the agent win and the observations were recorded.

There are two python files game.py and board.py.

board.py file contains game board, no of pits and pieces in each pit along with some of the methods.

game.py file contains all agent algorithms that is naive algorithm, greedy algorithm, min max algorithm, min max with alpha beta prunning algorithm.

To run the program.

You can use python version 2.7 or 3.0 or greater.

Open Console

Go to the directory of the program file and then execute below line in the console

python game.py

You can see an output in the console.

DEMO

Naïve vs Naïve

Naïve vs Greedy

Naïve vs Min-Max with alpha-beta pruning

Min-Max vs Greedy

Checkout project section for more details: https://kepy.online/

Checkout Demo of this project here: https://youtu.be/TBmMEyluORQ

About

Pallenghuzhi Game Agents(Artificial Intelligence)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages