Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Academy » Player assistant "AI"
Re: Player assistant "AI" Wed, 08 March 2006 08:49 Go to previous messageGo to previous message
Kotk

 
Commander

Messages: 1227
Registered: May 2003
m.a@stars wrote on Wed, 08 March 2006 11:17

The interesting part is Stars! (or a Stars!-like clone) offers a nice simple/complex playground for anyone interested in game-AI to test his/her skills/ideas. Smile

I have tested my simple amateur AI ideas on lot simpler playgrounds. For example i did windows minesweeper AI.
Optimized the code until it sweeped expert level below 1 seconds in debug mode (unless it hit mine) on 900MHz Athlon, and then a thief stole my computer. Sad
Quote:

Such a graph has indeed been in my mind often, when considering how most ppl do actually scout their space. Could you please tell me how you generated it? I know the general idea, but I'm too lazy/busy to research the actual algorithm/code. Wink

What you mean? How i generated? Surprised Silently. Wrote in C++ (2003). Reading xy file algorithm i already had, star map display i already had. Used boost::graph template for graph (but current problem needs none of its features). Algorithm to fill graph is 10-liner that selects all pairs of two different planets, uses Pythagoras for calculating distance between them and if distance fits to conditions then add edge to graph. Most code/time went to displaying that graph on star map later.
Quote:

I wonder if you have any other cool ideas for penscans? Cool

For one example to think about:
1) Draw scanner radius circle around all unscouted planets.
2) measure sweetness of each spot within 81 ly radius to your scout (by how many circles overlap there). Its ~20K spots. Laughing
3) choose some sweetest spot and go there.
4) remove the circles for scouted places and back to 2)



Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Minerals - mining and depletion
Next Topic: Need a quick answer with detonating minefield question
Goto Forum:
  


Current Time: Thu Jul 04 09:15:47 EDT 2024