LOGIN
User Name
Password
Remember me


Register...Forgot password?
Main menu
Leagues
Gonzaga
Blue Max
Cartagena
Wooden Ships...
King Me!
VampiRing
Forum Message
Previous messagePost a replyNext message

Country:US
Membership23years 139days ago.
Last Login4h ago.
Last Move4h ago.
Electro is currently Offline!Send a mail to Electro


Message header
Area/Game:Blue Max
Topic:Suggestions, improvement, critics
Subject:Re: What algorithm would you give automove
Posted by: Electro - 6years 290days ago.
Message text
gugliandalf wrote:
edwardlaneuk wrote:
Ok this is a bit of a crazy idea, but if you wanted to write a fresh set of instructions to automove your plane with a minimum level of processing power required, what rules would you write ?


Once I did it, for a Flash version of BM. It worked so good that I had to insert a small random percentage of error to make the automove actually beatable. But halas it was a brute force algorythm, quite heavy even on 1vs1 games.

Anyway, it worked on angles. IIRC was more or less:
1. select the nearest enemy plane with the best angle toward you (i.e. it's at your 6 and you're at its 12 is best and so on).
2. compute all possible moves for it and for you, and put in a matrix computing all resulting angles.
3. Keep in mind the first 2 rules of karate: #1, don't take hits; #2, learn rule #1.
4. pick best angles, if more than one pick best distance. Of course, if you can fire better still.

Quite heavy, isnt'it?

To make it lighter, we can work just on starting angles, trying to get a better angle. Eventually keep in mind dicta: turn toward your enemy.

Anyway, just selecting all possible moves before randomizing the choice would be a good improvement itself. We could start from that and see how it affects performance.


--- Message edited by gugliandalf

Do you have that code laying around? I'm sure we could optimize it and I do have a fairly powerful system here.

Back to the messages list
Messages thread
Posting elapsed timePosted bySubject

6years 297days edwardlaneuk [BM][IDEAS] What algorithm would you give automove
6years 297days Electro Re: [BM][IDEAS] What algorithm would you give automove
6years 297days edwardlaneuk Re: [BM][IDEAS] What algorithm would you give automove
6years 292days gugliandalf Re: [BM][IDEAS] What algorithm would you give automove
 6years 292days edwardlaneuk Re: [BM][IDEAS] What algorithm would you give automove
 6years 290days gugliandalf Re: [BM][IDEAS] What algorithm would you give automove
 6years 290days Electro Re: [BM][IDEAS] What algorithm would you give automove
  6years 290days gugliandalf Re: [BM][IDEAS] What algorithm would you give automove
  6years 289days imdog Re: [BM][IDEAS] What algorithm would you give automove
   6years 289days pokerguy Re: [BM][IDEAS] What algorithm would you give automove
   6years 289days Electro Re: [BM][IDEAS] What algorithm would you give automove
    6years 287days imdog Re: [BM][IDEAS] What algorithm would you give automove
     6years 287days Electro Re: [BM][IDEAS] What algorithm would you give automove
Next thread
Posting elapsed timePosted bySubject

6years 287days mjk1964 [BM][BUG] Blue Max - league 12228
Previous thread
Posting elapsed timePosted bySubject

6years 297days edwardlaneuk [BM][BUG] I seem to have auto moved when i wasn't expecting it
Page generated in: 19.53125 milliseconds.