Matching system ?

Post Reply
Jey123456
Posts: 7
Joined: Thu May 29, 2008 9:03 pm

Matching system ?

Post by Jey123456 »

i was wondering how do the matching system work ?

I usually had at least a few fight every hours, now its been about 2 day since my bot last fight lol.
________
extreme vaporizer
Last edited by Jey123456 on Wed Feb 02, 2011 11:35 pm, edited 1 time in total.
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

hey there, i don't run the bots all the time. i usually do it for a while after there's a new one and then stop. but i'm running it again now =)

adum
Jey123456
Posts: 7
Joined: Thu May 29, 2008 9:03 pm

Post by Jey123456 »

ah, i see, its manually done ?. I tought there would be some sort of automatic fight hehe. Thx for answering lol
________
herbal vaporizers
Last edited by Jey123456 on Wed Feb 02, 2011 11:35 pm, edited 1 time in total.
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

ah well, i just have to hit a button and it does everything automatically. i don't assign the individual matchups =)

in case you're wondering, it tends to make the newest bots fight more often. so someone who just uploaded a bot will get a lot of fights in quickly.

adum
User avatar
Kender
Posts: 18
Joined: Thu Jun 25, 2009 4:50 pm
Contact:

Post by Kender »

Hey Adum,

Could you press the button again please? :D

The bot I uploaded two days ago only got to fight for 5 minutes.. :?

Code: Select all

Opponent Date			Time		 Winner	 Length
asx      2009-07-15	17:24:00	Sun Tzu	576
asx      2009-07-15	17:24:14	Sun Tzu	311
Colossus 2009-07-15	17:25:32	Sun Tzu	275
Xtee     2009-07-15	17:28:47	Sun Tzu	1010
asx      2009-07-15	17:28:51	Sun Tzu	165
Maybe I'm being too impatient? :roll:

Ideally the match runner would run continuously with a very low process priority until all bots have played roughly the same amount of matches. Or is that too simplistic?
Pseudocode:

Code: Select all

while (running) {
  if (New or updated bot) {
    opponents = select bot from bots where bot != newbot
    foreach opponent in opponents {
      play(newbot, opponent)
    }
  }
  avg = select avg(matchcount) from bots
  candidates = select bot from bots where matchcount < (avg*0.9)
  foreach candidate in candidates {
    opponent = select bot from bots where bot != candidate order by rand() limit 1
    play(candidate, opponent)
  }
} 
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

k, i ran it some more =)
User avatar
Kender
Posts: 18
Joined: Thu Jun 25, 2009 4:50 pm
Contact:

Post by Kender »

ooh yeah, gimme more, I'm an addict!
Post Reply