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

City:HONG KONG, ASIA, EARTH, SOL, MILKY WAY HK
Personal Data:Male, born: January 01 1975
HomePage or other cool site:http://https://www.youtube.com/user/imdog
Membership22years 353days ago.
Last Login190days 12h ago.
Last Move13h 9' ago.
imdog is currently Offline!Send a mail to imdog


Message header
Area/Game:Blue Max
Topic:Suggestions, improvement, critics
Subject:Re: What algorithm would you give automove
Posted by: imdog - 6years 289days ago.
Message text
Electro wrote:
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.


Just adding some thought, as there is almost some hundred thousand games here already. You could use some data analytic to learn from the user here and machine "learn" from them. that would be an interesting project.

Cheers, .

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: 22.65625 milliseconds.