Thursday, November 22, 2012

Tiger and Goat(Baghchal) game-Artificial Intelligence game sourcecode in c++


 Introduction:

Baghchaal is a Typical Nepali game.It is also called tiger and goat game. The main aim of this game is that the tigers tries to eat the goat as more as it can whereas the goat tries to trap the tiger to its moveless position.
baghchaal board





RULES

At the start of the game, all four tigers are placed at the four edge of the board facing the center of the grid.Then the goat needs to be placed in the grid turn by turn alternately with the tiger.

The goat must be placed at the intersection of the board and follow the lines.There are 20 goats available  in this game.once the 20 goats are placed in the grid. Then the move should be made from the placed goat in the grid.

The tiger captures the goat by jumping over them to an adjacent free position.


Sourcecode detail:

game:   tiger and goat(baghchaal)
language:  visual c++
IDE      : visual studio

The sourcecode available is a artificial intelligence game. The computer player is the tiger and the user is goat. Here the image used are wasp as tiger and butterfly as goat.
The user can handle the butterfly with the use of mouse. The user just need to point the goat and drag to the desire place.


OUTPUT:




download sourcecode here
















1 comment:

  1. Truly it is very nice to read this kind of blogs, you really share interesting post. Thanks for posting…
    Car moving in kanpur.

    ReplyDelete