Author |
Topic: Hippo based bots discussion & chat (Read 4307 times) |
|
Ikki
Forum Full Member
Arimaa player #8506
Gender:
Posts: 16
|
|
Hippo based bots discussion & chat
« on: Apr 8th, 2013, 10:45am » |
Quote 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 |
|
|
|
Ikki
Forum Full Member
Arimaa player #8506
Gender:
Posts: 16
|
|
Re: Hippo based bots discussion & chat
« Reply #2 on: Apr 8th, 2013, 1:44pm » |
Quote Modify
|
Hello Hippo, seems that you have changed quite a lot of things ! 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.
|
|
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: Hippo based bots discussion & chat
« Reply #3 on: Apr 8th, 2013, 4:49pm » |
Quote Modify
|
on Apr 8th, 2013, 1:44pm, Ikki wrote:Hello Hippo, seems that you have changed quite a lot of things ! 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.
|
|
IP Logged |
|
|
|
Ikki
Forum Full Member
Arimaa player #8506
Gender:
Posts: 16
|
|
Re: Hippo based bots discussion & chat
« Reply #4 on: Apr 19th, 2013, 9:14pm » |
Quote 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.
|
|
IP Logged |
|
|
|
Hippo
Forum Guru
Arimaa player #4450
Gender:
Posts: 883
|
|
Re: Hippo based bots discussion & chat
« Reply #5 on: Apr 22nd, 2013, 2:45pm » |
Quote 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. |
| 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:
Posts: 16
|
|
Re: Hippo based bots discussion & chat
« Reply #6 on: Apr 25th, 2013, 7:08pm » |
Quote Modify
|
Thanks for your help Hippo !
|
|
IP Logged |
|
|
|
|