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 on the new forumNext message

City:Corvallis US
Personal Data:Male,
HomePage or other cool site:http://www.youplay.it
Membership23years 205days ago.
Last Login5years 257days ago.
Last Move13years 208days ago.
webmaster is currently Offline!Send a mail to webmaster


Message header
Area/Game:General
Topic:General
Subject:Re: HELP WANTED
Posted by: webmaster - 22years 140days ago.
Message text
Hi Neko,

your algorithm is verrrrry well done and gave us some ideas on how to improve what we are thinking about.

Just a few consideration that might help optimize it.
1. We added a field called FOLLOWING that, for each ship, is filled with the id of a different ship if the hex entered by a ship is the same of the hex left free by another ship. In this case Ship A follow ship B, so if ship B is stopped, also ship A will. By doing so, we never move ship A before ship B. This is done by testing the value of the field FOLLOWING before moving a ship. If this field is not empty and the followed ship has not moved, than we try to move followed ship. The FOLLOW test is repeated on the new ship until we find a ship that do not follow any ship.
2. In the ordering of the ships, we also consider the "possible" collision between all ship that are at distance 2 or less. This is done by considering the 9 combination of hexes: for each ship we have the 2 occupied hex plus a possible third one the is the hex the ship will enter. This 9 check will ensure that for each ship pair we find all possible collision (can be optimized a bit, but not now). We give a weight to each type of collision we find (E.g. 10 points for a ship moving forward into an occupied hex, 6 point for a ship turning into an occupied hex). We sum up all the "Collisions score" and then order the ship from the heaviest.

With this two steps will be able to reduce to the minimum the looping because we start move the more "entangled" ship, the one who is involved in the highest number of collisions.

Currently, is not clear how to wheight the "Collision score" with your "Move" wheighting... any suggestion is welcome.

Have fun,
your Webmasters.

Back to the messages list
Messages thread
Posting elapsed timePosted bySubject

22years 146days webmaster HELP WANTED
22years 146days Zif Re: HELP WANTED
22years 146days lepres Re: HELP WANTED
22years 146days Zif Re: HELP WANTED
 22years 146days Falconfab Re: HELP WANTED
22years 144days webmaster Re: HELP WANTED
22years 146days TnT Re: HELP WANTED
22years 144days webmaster Re: HELP WANTED
22years 144days webmaster Re: HELP WANTED
22years 144days webmaster Re: HELP WANTED
22years 144days Just4Fun Re: HELP WANTED
22years 143days webmaster Re: HELP WANTED
 22years 143days TnT Re: HELP WANTED
  22years 143days webmaster Re: HELP WANTED
   22years 143days Ensign Re: HELP WANTED
    22years 143days webmaster Re: HELP WANTED
     22years 142days lepres Re: HELP WANTED
      22years 142days webmaster Re: HELP WANTED
22years 141days flying_neko Re: HELP WANTED
 22years 141days webmaster Re: HELP WANTED
 22years 141days flying_neko Re: HELP WANTED
  22years 141days flying_neko Re: HELP WANTED
  22years 141days marcuza Re: HELP WANTED
  22years 140days webmaster Re: HELP WANTED
   22years 140days flying_neko Re: HELP WANTED
    22years 140days flying_neko Re: HELP WANTED
    22years 140days webmaster Re: HELP WANTED
    22years 140days webmaster Re: HELP WANTED
 22years 140days webmaster Re: HELP WANTED
Next thread
Posting elapsed timePosted bySubject

22years 140days iceman error during creation 53918
Previous thread
Posting elapsed timePosted bySubject

22years 141days marcuza Re: MARCUZA'S BIRTHDAY
 22years 141days Von Zerow Re: MARCUZA'S BIRTHDAY
  22years 141days marcuza Re: MARCUZA'S BIRTHDAY
   22years 141days Gladiatore Re: MARCUZA'S BIRTHDAY
    22years 141days marcuza Re: MARCUZA'S BIRTHDAY
    22years 140days juggernaut Re: MARCUZA'S BIRTHDAY
Page generated in: 26.17188 milliseconds.