51 likes | 191 Views
Tank Craft. ---- A simple game AI based on A-star search Bo Liu 12/7/2010. Graph Interface. Rule. Randomly initialize the tank type Pioneer aggressivity : 1 , life : 9 , shot distance : 1
E N D
Tank Craft ---- A simple game AI based on A-star search Bo Liu 12/7/2010
Rule • Randomly initialize the tank type • Pioneer aggressivity:1 ,life:9,shot distance:1 • Striker aggressivity:2 ,life:3,shot distance:3 • Sniper aggressivity:1 ,life:2,shot distance:5 • Score earned per round = the number of goldmines occupied • Either fire or move in each round, fire first • Life reduction = the aggressivity of enemy • Dead tank will revive after 2 round at its original position • Stone is indestructible, brick has 2 point life. • The side which get 1000 point first will win
A-star Search • Using manhattan distance as heuristic function • Lock the goldmine with shortest manhattan distance • True cost • blank or goldmine: 1 • brick: 3 • broken brick: 2 • stone: infinite