.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 18th, 2005, 12:49 AM
AngleWyrm's Avatar

AngleWyrm AngleWyrm is offline
Second Lieutenant
 
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
AngleWyrm is on a distinguished road
Default Movement AI needs work

Maybe this has been discussed before, but it bears mentioning if it hasn't: I can kick the computer's butt with a simple player movement algorithm. This algorithm should be considered for inclusion into the next generation of Strategic movement AI.

It goes like this:
1. Examine enemy ship speeds and calculate closest approach.
2. Examine enemy weapon ranges and calculate nearest safe distance.
3. Approach to just outside nearest safe distance, then close to attack next turn.

As I said before, this tactic has won me most of my tactical combat scenarios against the computer.

In phase 2, calculating enemy weapon ranges, I take into account the weapons destructive potential. The math is simple: Multiply %chance to hit by damage at range to get ExpectedDamage at range. This measure of enemy damage potential can allow the player/ai to accept a certain minimum damage that won't pass shields, and assess whether the enemy can be destroyed first.

An additional result could be the creation of a new Movement Classification, called Best Damage Ratio. This would be moving to a range that has the highest FriendlyExpectedDamage/EnemyExpectedDamage, to be applied during phase 3.
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.