Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Bot Development >> Hippo based bots discussion & chat
(Message started by: Ikki on Apr 8th, 2013, 10:45am)

Title: Hippo based bots discussion & chat
Post by Ikki on Apr 8th, 2013, 10:45am
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 !

Title: Re: Hippo based bots discussion & chat
Post by Hippo on Apr 8th, 2013, 12:43pm
The src with do/undo is public now on http://hrosi.dyndns.org/arimaa/bot_Hippo130408.zip.

Title: Re: Hippo based bots discussion & chat
Post by Ikki on Apr 8th, 2013, 1:44pm
Hello Hippo,

seems that you have changed quite a lot of things !  :o

You are working on a genetic algorithm ? Interesting.

I will stick on the good old version for now. ;) I wanna work on the evaluation function.

Title: Re: Hippo based bots discussion & chat
Post by Hippo on Apr 8th, 2013, 4:49pm

on 04/08/13 at 13:44:25, Ikki wrote:
Hello Hippo,

seems that you have changed quite a lot of things !  :o

You are working on a genetic algorithm ? Interesting.

I will stick on the good old version for now. ;) 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.

Title: Re: Hippo based bots discussion & chat
Post by Ikki on Apr 19th, 2013, 9:14pm
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. ;)

Title: Re: Hippo based bots discussion & chat
Post by Hippo on Apr 22nd, 2013, 2:45pm

on 04/19/13 at 21:14:36, 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. ;)


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

Title: Re: Hippo based bots discussion & chat
Post by Ikki on Apr 25th, 2013, 7:08pm
Thanks for your help Hippo !



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