Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For each enemy
- Calculate manhattan distance
- If 0 or 1, cost += absolute(enemy health - health) / 5
- Else if 2, cost += absolute(enemy heath - health) / 10
- Else cost += 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement