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.


Replies 1 - 10 of 30 Next › Last »
Wicked! wrote
at 8:56 PM, Tuesday December 9, 2008 EST
What language?
Ryan wrote
at 9:32 PM, Tuesday December 9, 2008 EST
just english... psuedocode
skrumgaer wrote
at 9:48 AM, Wednesday December 10, 2008 EST
Incidentally, does anyone know whether the dicewars bots all have the same code? Some colors seem to behave differently.
the full monte wrote
at 10:39 AM, Wednesday December 10, 2008 EST
are these bots allowed to truce at all?
like, the bots in dicewars:

findBattle(){

if exist(enemy with more than 1/2 of map)
trueEnemy = enemyWithMoreThanHalfOfMap
endif

for each enemy border region
if enemy == trueEnemy && my dice > enemy dice
return enemy region
endif
return no region
}
JDizzle787 wrote
at 10:49 AM, Wednesday December 10, 2008 EST
so, is this your way around moderating? just turn us all into bots and forget about it? Is there a "PGA command"?




j/k sound rather interesting
MadWilly wrote
at 10:54 AM, Wednesday December 10, 2008 EST
sounds like an endless war bot to me monte. submitted a first crappy written bot btw.
nice idea Ryan i hope i dont have to lose too often to my own bot.
MadWilly wrote
at 10:56 AM, Wednesday December 10, 2008 EST
@skrum: dicewar bots do seem size sensitive to me. at a certain point they gun for the largest connected enemy (only).
the full monte wrote
at 10:58 AM, Wednesday December 10, 2008 EST
not really an endless war, because when the bots decide to 6v1 the 1st place bot, the 1st place bot still has a roughly 50% chance to win. so within a few iterations, there will be a winner.

actually, if i remember correctly, dicewars is more stringent than the 1/2-map limit. i believe it was a 14-territory limit (but then again, maybe dicewars was always a 28-terr map, i never really counted).
Red Bot wrote
at 11:23 AM, Wednesday December 10, 2008 EST
*Beep* *Beep*

Finally.... Friends.... Bots.....Rule.... KDice...
skrumgaer wrote
at 12:15 PM, Wednesday December 10, 2008 EST
Madwilly:

Also, dicewar bots do not attack across another color to reach the largest connected enemy.

To all:

How about this:

if numberbases > 1
....if enemy=Vermont
........for each base
............for each direction
................if direction=connect
....................findBattle=Vermont
....................return direction
............return base
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