50 likes | 169 Vues
Dive into A-Star Tactical Tank Battle, an engaging AI-based game where players command tanks with distinct characteristics. Strategically choose your tank type from Pioneer, Striker, or Sniper, each with unique aggressivity, life, and shot distance. Earn points by capturing goldmines while utilizing A-star search with Manhattan distance to navigate the battlefield. Fire your weapon or move each turn to outsmart your opponents. With destructible terrain and the challenge to reach 1000 points first, this simple yet captivating game promises endless fun. Enjoy the tactical thrills!
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 • Pioneeraggressivity: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