The_Lucky_Mutt
Level: Delver
Rank Points: 35
Registered: 05-27-2003
IP: Logged
|
Re: Multiuser DROD (0)
Ok, Ok, so it is hasty of me to ask if you arn't up to such a big challenge without trying to tackle it myself, so here is my solution that makes it so that there are no tob to bottom or left to right prejudices.
(By the way, I understand that it is things like this that have to do with the basic movement or DROD that are close to imposible to implement because they would chage how every room works... but I offer the solution anyway.)
The Relitivity Solution:
1) Have every creature choose the spot where, if there were no other creatures, it would go.
2) Settle all the creatures whose intended position is both currently enpty and is not claimed as an intended position for any other
2a) Repeat step 2 with the information about which have moved for sure until repetition yeilds no change
3) Go through all of the cases where more than one bug claimed the same square and give the square to the winner based on the folowing fules
3a) The bug farther away from Bethro wins
3b) If tie (as in the case of two roaches a knight move away) Give the square to the bug that is closer to the closest border of the room that they are not equal disstance from (Just so that it isn't based on which is is closer to the upper left corner) If your playing some tripped out version of DROD that has rooms with an odd number of rows or columns, so there is still a tie, crash the program with a cryptic error message like 'relativity could not be upheld'.
4) For all the creatures that didn't get their desired spot, see if a secounady spot applies (as a roach moving diagnol will settle for horizontal). Have all the creatures that this applies to chose their desired secoundary spot. Settle all the creatures who a secoundary choice doesn't apply.
4a) When a diagonal primary is denied, the creature should choose the direction (horazontal/vertical) that the creature is farther from Bethro, is counting only that direction. In the case of a tie (ie, a bishops move away) then the creature should chose the direction that will further him from the closest edge of the room. If still a tie, move the creature in the direction that will put it closest to the border that Bethro is farthest from not counting the two checked earlier. If your playing some tripped out version of DROD that has square rooms, so there is still a tie, crash the program with a cryptic error message like 'relativity could not be upheld'.
5) Repeat Steps 2 & 3 with the creatures secoundary choice.
6) Have the still unmoved, unsettled creatures chose a trinary choice, or settle. Then repeat steps 2 & 3
*) When dealing with queens, simply reverse all of the arguments (ei, 'closer to' becomes 'farther from').
*) You might want some creature hiarchy, ie, snakes always beat roaches, but that is trivial.
I think that just about covers it... I think that I upheld some of the fundemental easily noticed roach tendancies when they move en masse, but I'm not sure how much I changed... I think large roach parties would be harder to string into lines, then again, the farther does move first, so maybe not.
-TLM
[Edited by The_Lucky_Mutt on 08-12-2003 at 01:21 PM GMT: reworking the theory]
|