Welcome, Guest. Please Login or Register.
Nov 24th, 2024, 10:42pm

Home Home Help Help Search Search Members Members Login Login Register Register
Arimaa Forum « Hippo based bots discussion & chat »


   Arimaa Forum
   Arimaa
   Bot Development
(Moderator: supersamu)
   Hippo based bots discussion & chat
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Hippo based bots discussion & chat  (Read 4307 times)
Ikki
Forum Full Member
***




Arimaa player #8506

   


Gender: male
Posts: 16
Hippo based bots discussion & chat
« on: Apr 8th, 2013, 10:45am »
Quote Quote Modify Modify

A chat for people working on a hippo base bot.
 
That's what I am doing. I've spent quite a lot of time understanding the code. Many things are still unclear to me but I think I know enough to start modifying the evaluate function to improve how the bot plays.
 
Base hippo code is here:
http://arimaa.com/arimaa/download/bot_Hippo/bot_Hippo.zip
 
It's written in java.
 
Comments, ideas, etc. are welcomed !
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 883
Re: Hippo based bots discussion & chat
« Reply #1 on: Apr 8th, 2013, 12:43pm »
Quote Quote Modify Modify

The src with do/undo is public now on http://hrosi.dyndns.org/arimaa/bot_Hippo130408.zip.
« Last Edit: Apr 8th, 2013, 12:44pm by Hippo » IP Logged

Ikki
Forum Full Member
***




Arimaa player #8506

   


Gender: male
Posts: 16
Re: Hippo based bots discussion & chat
« Reply #2 on: Apr 8th, 2013, 1:44pm »
Quote Quote Modify Modify

Hello Hippo,
 
seems that you have changed quite a lot of things !  Shocked
 
You are working on a genetic algorithm ? Interesting.
 
I will stick on the good old version for now. Wink I wanna work on the evaluation function.
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 883
Re: Hippo based bots discussion & chat
« Reply #3 on: Apr 8th, 2013, 4:49pm »
Quote Quote Modify Modify

on Apr 8th, 2013, 1:44pm, Ikki wrote:
Hello Hippo,
 
seems that you have changed quite a lot of things !  Shocked
 
You are working on a genetic algorithm ? Interesting.
 
I will stick on the good old version for now. Wink I wanna work on the evaluation function.

 
The learning was there in previous version allready. Unfortunately it somehow diverged so I have stopped the developping till other features are added.
And I hope the work of my student on mobility could be used for it in foreseeable future.
IP Logged

Ikki
Forum Full Member
***




Arimaa player #8506

   


Gender: male
Posts: 16
Re: Hippo based bots discussion & chat
« Reply #4 on: Apr 19th, 2013, 9:14pm »
Quote Quote Modify Modify

Hi, I've a little problem. I'm working on the evaluation function (evaluate2 class). I think I understand the way the mapping is done for the pieces on the board:
 
stronger_or_eq_bb[7][2]
 
This bitboard represent que whole pieces position on the board:
 
stronger_or_eq_bb[1][] is for gold
 
stronger_or_eq_bb[0][] si for silver.
 
stronger_or_eq_bb[0][5] represent the stronger piece (elephant) if I am correct.
 
stronger_or_eq_bb[][1] represent the weakest, the rabbit.
 
Am I correct until now ?
 
Ok.
 
Then at the beginning of the evaluation function, there are a bunch of variable that I do not understand and are derived from the previous:
 
long gold_bb = gs.stronger_or_eq_bb[0][0];
 
 
long gold_nr_bb = gs.stronger_or_eq_bb[0][1];
 
 
long gold_r_bb = gold_bb ^ gold_nr_bb;
 
What does they stand for ?
 
Thanks. Wink
IP Logged
Hippo
Forum Guru
*****




Arimaa player #4450

   


Gender: male
Posts: 883
Re: Hippo based bots discussion & chat
« Reply #5 on: Apr 22nd, 2013, 2:45pm »
Quote Quote Modify Modify

on Apr 19th, 2013, 9:14pm, Ikki wrote:
Hi, I've a little problem. I'm working on the evaluation function (evaluate2 class). I think I understand the way the mapping is done for the pieces on the board:
 
stronger_or_eq_bb[7][2]
 
This bitboard represent que whole pieces position on the board:
 
stronger_or_eq_bb[1][] is for gold
 
stronger_or_eq_bb[0][] si for silver.
 
stronger_or_eq_bb[0][5] represent the stronger piece (elephant) if I am correct.
 
stronger_or_eq_bb[][1] represent the weakest, the rabbit.
 
Am I correct until now ?
 
Ok.
 
Then at the beginning of the evaluation function, there are a bunch of variable that I do not understand and are derived from the previous:
 
long gold_bb = gs.stronger_or_eq_bb[0][0];
 
 
long gold_nr_bb = gs.stronger_or_eq_bb[0][1];
 
 
long gold_r_bb = gold_bb ^ gold_nr_bb;
 
What does they stand for ?
 
Thanks. Wink

 
supppose all pieces are present ...
stronger_or_eq_bb[0][0] are all gold pieces (RCDHME)
stronger_or_eq_bb[0][1] are all gold nonrabbit pieces (CDHME)
stronger_or_eq_bb[0][2] are gold pieces DHME
stronger_or_eq_bb[0][3] are gold pieces HME
stronger_or_eq_bb[0][4] are gold pieces ME
stronger_or_eq_bb[0][5] are gold pieces E
stronger_or_eq_bb[0][6] is zero
 
if just camels are traded
stronger_or_eq_bb[0][4] are gold pieces E
stronger_or_eq_bb[0][5] is zero
IP Logged

Ikki
Forum Full Member
***




Arimaa player #8506

   


Gender: male
Posts: 16
Re: Hippo based bots discussion & chat
« Reply #6 on: Apr 25th, 2013, 7:08pm »
Quote Quote Modify Modify

Thanks for your help Hippo !
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.