Forum


KDICE BOTS
Posted By: Ryan at 7:50 PM, Tuesday December 9, 2008 EST
I'm working on doing some AI battles with KDice and was hoping to get some initial bots submitted as psuedo code algorithms. I'll name the bot after your kdice name and will have them battle each other. Eventually I can open up a kdice to write your own bot.

As a starting point, the current bots are dumb and run as follows:

findBattle(){
   for each enemy border region
      if my dice > enemy dice
         return enemy region
   return no region
}

Don't post your code here or others will take your good ideas! Ideally each bot is different. So email me first ([email protected]). I'll try to do a some battles on the test server and allow for some tweaking when they're done.


« First ‹ Previous Replies 11 - 20 of 30 Next › Last »
Cal Ripken wrote
at 12:48 PM, Wednesday December 10, 2008 EST
you could have a special code for when the monte bot and the das bot sit at the same table
the full monte wrote
at 1:45 PM, Wednesday December 10, 2008 EST
i hope to submit a bot soon...

but in jest, i cant resist:

Stoude bot:
if (location == coast)
.....chatbox('Im cool with 2nd')
end

CoMik & Vohaul bots:
if (enemy == knownFemale)
.....floodChatbox(cheesyPickUpLines);
elseif (enemy == potentialFemale)
.....floodChatbox('asl?');
end

monte & das bots:
acceptance = 0;
offeredPlacement = 7;
for each enemy
.....if (enemy != monte/das)
..........while acceptance = 0
...............acceptance = offerTruce(enemy,offeredPlacement);
...............offeredPlacement--;
..........end
.....end
end
rigor mortis wrote
at 1:55 PM, Wednesday December 10, 2008 EST
i thought the monte_bot was more like

while TRUE {
im_pga();
truce_now();
}
Zergme wrote
at 9:34 PM, Wednesday December 10, 2008 EST
Ryan this is a great idea, Kbots.com. programming your own kdice bot for a monthly competition.

I would love to do this, and i might learn programming in the proces.

a vrry fun and educational game.

best of all, it would be pga free.
trying to write my bot now.
Ryan wrote
at 10:20 PM, Wednesday December 10, 2008 EST
Maybe at a later stage trucing could be part of the bot. It could include the following:

- request truce
- accept/deny truce request
- attack decisions based on trucing
Zergme wrote
at 10:55 PM, Wednesday December 10, 2008 EST
Maybe there should be forced rules? like accepting flags?
Danny_DCB wrote
at 9:41 AM, Thursday December 11, 2008 EST
What exactly is the purpose of these bots? Just for training, as in will you introduce training point-free tables?
Vermont wrote
at 1:56 PM, Friday December 12, 2008 EST
skrum, that's a significantly better algorithm than you were using the other day. That one actually attempts to connect! :)

I think you were using something more like this:
.if numberbases > 1
.....for all base where size = 1
.........if not (attack would connect to largest base)
.............attack
.try to explain why strategy is superior
.return 7th

If people really get into coding for battling bots, you may want to check out http://robocode.sourceforge.net/
sonic 2782 wrote
at 3:07 PM, Friday December 12, 2008 EST
wheres the test server i want to give it a shot
Atsureikujabik wrote
at 8:27 PM, Wednesday December 17, 2008 EST
What are the allowed commands/syntax? Or you are the one who is going to "tranlate" these pseudocode into real code?
KDice - Multiplayer Dice War
KDice is a multiplayer strategy online game played in monthly competitions. It's like Risk. The goal is to win every territory on the map.
CREATED BY RYAN © 2006
RECOMMEND
GAMES
GPokr
Texas Holdem Poker
KDice
Online Strategy
XSketch
Online Pictionary