Skip to content

It is a game written in python . There are 2 player , one is Human and Other is AI bot . There are six soldier for each player and have to kill opponent's soldier first in order to win . At the beginning ,the turn is decided by using toss . One soldier can move up , down , left , right .

Notifications You must be signed in to change notification settings

nahid0335/Six-Soldier-using-AI-in-python

Repository files navigation

Six-Soldier-using-AI-in-python

It is a game written in python and for visualization pygame is being used .
There are 2 player , one is Human and Other is AI bot . There are six soldier for each player and have to kill opponent's soldier first in order to win .
At the beginning ,the turn is decided by using toss .

In this game, minmax algorithm is used for AI and alpha beta pruning for optimizing the algorithm.

Player

  1. Human (Blue color)
  2. Computer (White color)

Move

  1. Up
  2. Down
  3. Left
  4. Right

alt text

Board

It is a 5 by 3 board
alt text

Kill Move

Have to go over the opponent soldier then can kill it
alt text

Win condition

Have to finish all the opponent soldier.
alt text

Requirement

  1. python
  2. pygame

run the main.py file.

About

It is a game written in python . There are 2 player , one is Human and Other is AI bot . There are six soldier for each player and have to kill opponent's soldier first in order to win . At the beginning ,the turn is decided by using toss . One soldier can move up , down , left , right .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages