Feature request: alternate red/blue positions in series

Post Reply
Bedevere
Posts: 2
Joined: Sun Aug 26, 2007 7:44 am

Feature request: alternate red/blue positions in series

Post by Bedevere »

I always keep several old versions of my bot around and test changes that I make to my main bot against other versions to see what sort of a percentage increase in wins those changes generate. I don't know why I never noticed this before, but I just forked my code again and ran some series and have noticed that running identical bots against each other, the red one in the top position wins at about a 2-1 margin. I have switched them up to make sure that there wasn't an accidental code change and been running sims since last night and am consistently getting the 2-1 ratio.

It probably depends a lot on the bot, though. Run two Ghengis' against each other and I would expect it would be near 50-50 because there is so much luck involved with such a dumb bot, but I guess mine is good at quickly getting the cities it can get and then goes into very long and protracted wars against itself in which the bots order apparently makes a difference.

Anyway, at the least, this is a heads up for anyone who is doing back testing like this. Run you sim one way for 2 hours, then flip it for another two hours if you want an accurate comparison.

(It could also be some other bug, like always awarding the win to the first bot in the case of a stalemate since my bot stalemates against itself a huge percentage of the time.)
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

hmmn, i ran my bot overnight and got this:
com.adum.bitbath.botA
524
com.adum.bitbath.botAcopy
519

so no significant difference. now, my bot isn't as deadly as yours, but it's not Ghengis. are you totally sure about your finding? i can't think of any real reason in terms of the game design that it would make a difference going first. ie, in one turn both teams will move, fire, etc. two bots can kill eachother in the same turn; it's not like the first team kills the second one because they move first.

adum
Bedevere
Posts: 2
Joined: Sun Aug 26, 2007 7:44 am

Post by Bedevere »

I did about 200 simulations over the period of about 20 hours, 100 one way and 100 the other and both were very close to a 2-1 ratio. I would do more trials, but unfortunately, my bot gets bogged down against itself and thats about as many as I can get in a day of testing.

This sounds like it's a problem that only I'm having, so I guess it's not a big deal. I will just have to split all my testing.
User avatar
Kender
Posts: 18
Joined: Thu Jun 25, 2009 4:50 pm
Contact:

Post by Kender »

You probably misread this line from the readme: "Other teams have a faction value of greater than 0."

If you're checking for objFaction == 1, then that would explain the results you're seeing.
Try objFaction > 0 for enemy objects.
User avatar
Nick-Aotmzgin
Posts: 64
Joined: Sun Jun 14, 2009 11:01 am
Location: Microsoft Labs

yep

Post by Nick-Aotmzgin »

Bots game play auto adjustment. the best fastest game solutions.
(i) Hacerks Group -> Greek Hackers Group (House of Hackers Offical Community)
Post Reply