Skip to content

sanky29/game_of_cannon_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Cannon By Ashish Gupta and Sanket Gandhi

Description

The game description can be found here

Bot

The bot part uses Adversarial Search with Alpha-Beta pruning. The search was cut-off according to state analyzer function which decides depth of search for given state. A evaluation function was used to compare between different cut-off leaves.

Key Points

For choosing next child node to explore we used same evaluation function so that maximum nodes are pruned. The state analyzer function was desgined in such way that at start of game the depth was high and as game progresses the depth decreases.

Evaluation Function

Eval(state) = 100so + 1000to + 10ct + at - 0.000001dt
where
so = net soldier differencd
to = net townhall differencd
ct = net cannon difference
at = net attacking positions difference
dt = net difference of sum of distances of soldier from opponents townhall

Game Instance

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published