Banksia GUI released

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Vinvin
Posts: 5379
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Banksia GUI released

Post by Vinvin »

phhnguyen wrote: ↑Thu Jun 04, 2020 10:55 am
Vinvin wrote: ↑Wed Jun 03, 2020 4:51 pm One more remark about the logarithmic scale of the graph, it's a bit too strong (+1 is halfway to +10).
Lichess has implemented a formula to compute the vertical value on the graph, it uses the winning probability. See here : https://www.chessprogramming.org/Pawn_A ... lationship
It is one of my headache issues since graphs of logarithmic scale look so bad and not smooth!

However, I don't understand the method from that page, which formula/function to calculate y from a score. Can you or someone explain more?
Sure !
Enter the Eval in the given formula : 1/(1+10^(-Eval/4)) , it will return a value between 0 and 1.
"0" means black is completely winning (bottom of the graph), "1" means white is completely winning (top of the graph), "0.5" means the game is even (middle of the graph).
Some examples :
+1 : 1/(1+10^(-1/4)) = 0.64 (64%)
+5 : 1/(1+10^(-5/4)) = 0.947
-3.5 : 1/(1+10^(3.5/4)) = 0.11766
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

Vinvin wrote: ↑Thu Jun 04, 2020 1:48 pm
phhnguyen wrote: ↑Thu Jun 04, 2020 10:55 am
Vinvin wrote: ↑Wed Jun 03, 2020 4:51 pm One more remark about the logarithmic scale of the graph, it's a bit too strong (+1 is halfway to +10).
Lichess has implemented a formula to compute the vertical value on the graph, it uses the winning probability. See here : https://www.chessprogramming.org/Pawn_A ... lationship
It is one of my headache issues since graphs of logarithmic scale look so bad and not smooth!

However, I don't understand the method from that page, which formula/function to calculate y from a score. Can you or someone explain more?
Sure !
Enter the Eval in the given formula : 1/(1+10^(-Eval/4)) , it will return a value between 0 and 1.
"0" means black is completely winning (bottom of the graph), "1" means white is completely winning (top of the graph), "0.5" means the game is even (middle of the graph).
Some examples :
+1 : 1/(1+10^(-1/4)) = 0.64 (64%)
+5 : 1/(1+10^(-5/4)) = 0.947
-3.5 : 1/(1+10^(3.5/4)) = 0.11766
Thanks a lot! It works :D
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

Jonathan003 wrote: ↑Thu Jun 04, 2020 1:58 am


For a quick test, I set the depth to 8 only, then convert from gm2600.bin (347 KB) to g2600.pgn (114 KB):

Image


If I convert the book this way the conversion is done in a split of a second. The pgn file is only 112 kb and contains only 844 games. So it is impossible all lines are there.
For ply = 1, there are 9 opening lines (you see the tree at level 1 have 10 branches as the following image, BSG has ignored one since it has no child)
For ply = 2, there are 49 opening lines
For ply = 3, there are 114 opening lines
For ply = 4, there are 227 opening lines
For ply = 5, there are 346 opening lines
For ply = 6, there are 506 opening lines
For ply = 7, there are 661 opening lines
For ply = 8, there are 844 opening lines

All numbers are reasonable, some are checked manually.

Image
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
User avatar
RubiChess
Posts: 673
Joined: Fri Mar 30, 2018 7:20 am
Full name: Andreas Matthies

Re: Banksia GUI released

Post by RubiChess »

Great that Banksia is getting better and better.
One small thing that I don't like: Scores with different decimal places. This mixture of

Code: Select all

+0
+0.1
+0.13
+1
+1.1
+6.2
doesn't look good to me. I would prefer a fixed numer of two decimal places even for high scores, at least for abs(score) < 10

Code: Select all

+0.00
+0.10
+0.13
+1.00
+1.12
+6.23
Am I the only one?

Regards, Andreas
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

RubiChess wrote: ↑Thu Jun 04, 2020 6:10 pm Great that Banksia is getting better and better.
One small thing that I don't like: Scores with different decimal places. This mixture of

Code: Select all

+0
+0.1
+0.13
+1
+1.1
+6.2
doesn't look good to me. I would prefer a fixed numer of two decimal places even for high scores, at least for abs(score) < 10

Code: Select all

+0.00
+0.10
+0.13
+1.00
+1.12
+6.23
Am I the only one?

Regards, Andreas
Thanks a lot for the suggestion. It is fixed for the next release
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

zenpawn wrote: ↑Thu Jun 04, 2020 2:05 am
phhnguyen wrote: ↑Wed Jun 03, 2020 4:41 pm
zenpawn wrote: ↑Tue Jun 02, 2020 11:49 pm It appears the "level" command is still not being sent to Winboard engines to tell them the time control.
I am struggling to reproduce the problem. Can you send me an engine log? Thanks.
Note that "level" will be sent only when the timer is the standard type.
What would be a non-standard type? I challenged with 180s + 2s, i.e., 3+2 from Banksia's lichess bots window. The log looked like:

Code: Select all

RookieMonster < xboard
RookieMonster < protover 2
RookieMonster > done=0
RookieMonster < force
RookieMonster < d2d4
RookieMonster < g8f6
hm::turkjs 1822 > move d2d4
RookieMonster < force
RookieMonster < b1c3
RookieMonster < d7d5
hm::turkjs 1822 > move b1c3
RookieMonster < force
RookieMonster < f2f3
RookieMonster < e7e6
hm::turkjs 1822 > move f2f3
RookieMonster < force
RookieMonster < e2e4
RookieMonster < c7c5
hm::turkjs 1822 > move e2e4
RookieMonster < force
RookieMonster < f1b5
RookieMonster < time 18507
RookieMonster < otim 18763
RookieMonster < go
hm::turkjs 1822 > move f1b5
RookieMonster > RookieMonster 1.7.5
RookieMonster > rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
RookieMonster > turn = white
RookieMonster > computer playing as white
RookieMonster > >
RookieMonster > feature myname="RookieMonster 1.7.5"
RookieMonster < accepted myname
RookieMonster > feature debug=1
RookieMonster < accepted debug
RookieMonster > feature reuse=0
RookieMonster < accepted reuse
RookieMonster > feature setboard=1
RookieMonster < accepted setboard
RookieMonster > feature variants="normal,fischerandom,3check,kingofthehill"
RookieMonster < accepted variants
RookieMonster > done=1
followed by the thinking output from RM until it lost on time. Note: It was considering the right position after the book (ignore the FEN as that was from the startup), so that's working now.

Hope that helps.
I have tried running my Lichess bot with Crafty, all are good, Crafty can play for whole games. The command "level" is always sent. I have tried to find RookieMonster to re-produce but look like it is not available to download.
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

AdminX wrote: ↑Wed Jun 03, 2020 11:04 am
phhnguyen wrote: ↑Wed Jun 03, 2020 4:02 am
AdminX wrote: ↑Tue Jun 02, 2020 12:58 pm Can you enable a way to disable 'Concurrency'? Only wish to play one game at a time and cannot set 'Concurrency' to 0.

Thanks
That is the concurrency of games, work as the following: when a bot got a new challenge and the number of playing games is over that concurrency, the challenge will be put in the waiting list and will be accepted later when the number of playing games reduced. That prevents bots from accepting too many games which may over the computing power
Ahh, okay then there may be a bug there. Because I have been getting a new game started while there is one already in progress. In other words the game is automatically starting without being played in the queue. This causes a problem when using LC0 because it creates a out of memory error which in turn prevents LC0 from moving.

Thanks
OK, from the next release, BSG will simply refuse new challenges when the number of playing games reaches the concurrency. Hope it can fix that problem.
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
zenpawn
Posts: 349
Joined: Sat Aug 06, 2016 8:31 pm
Location: United States

Re: Banksia GUI released

Post by zenpawn »

phhnguyen wrote: ↑Fri Jun 05, 2020 3:30 am
zenpawn wrote: ↑Thu Jun 04, 2020 2:05 am
phhnguyen wrote: ↑Wed Jun 03, 2020 4:41 pm
zenpawn wrote: ↑Tue Jun 02, 2020 11:49 pm It appears the "level" command is still not being sent to Winboard engines to tell them the time control.
I am struggling to reproduce the problem. Can you send me an engine log? Thanks.
Note that "level" will be sent only when the timer is the standard type.
What would be a non-standard type? I challenged with 180s + 2s, i.e., 3+2 from Banksia's lichess bots window. The log looked like:

Code: Select all

RookieMonster < xboard
RookieMonster < protover 2
RookieMonster > done=0
RookieMonster < force
RookieMonster < d2d4
RookieMonster < g8f6
hm::turkjs 1822 > move d2d4
RookieMonster < force
RookieMonster < b1c3
RookieMonster < d7d5
hm::turkjs 1822 > move b1c3
RookieMonster < force
RookieMonster < f2f3
RookieMonster < e7e6
hm::turkjs 1822 > move f2f3
RookieMonster < force
RookieMonster < e2e4
RookieMonster < c7c5
hm::turkjs 1822 > move e2e4
RookieMonster < force
RookieMonster < f1b5
RookieMonster < time 18507
RookieMonster < otim 18763
RookieMonster < go
hm::turkjs 1822 > move f1b5
RookieMonster > RookieMonster 1.7.5
RookieMonster > rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
RookieMonster > turn = white
RookieMonster > computer playing as white
RookieMonster > >
RookieMonster > feature myname="RookieMonster 1.7.5"
RookieMonster < accepted myname
RookieMonster > feature debug=1
RookieMonster < accepted debug
RookieMonster > feature reuse=0
RookieMonster < accepted reuse
RookieMonster > feature setboard=1
RookieMonster < accepted setboard
RookieMonster > feature variants="normal,fischerandom,3check,kingofthehill"
RookieMonster < accepted variants
RookieMonster > done=1
followed by the thinking output from RM until it lost on time. Note: It was considering the right position after the book (ignore the FEN as that was from the startup), so that's working now.

Hope that helps.
I have tried running my Lichess bot with Crafty, all are good, Crafty can play for whole games. The command "level" is always sent. I have tried to find RookieMonster to re-produce but look like it is not available to download.
Did you try challenging another bot to 180s + 2s? Perhaps it works when challenged, but not as the challenger?

Another thought is BG appears to not be waiting for the "done=1" before sending further commands after the "protover 2", but even so, I wouldn't think that would cause it to then not send "level".
Erin Dame
Author of RookieMonster
User avatar
phhnguyen
Posts: 1548
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Banksia GUI released

Post by phhnguyen »

zenpawn wrote: ↑Fri Jun 05, 2020 11:37 am Did you try challenging another bot to 180s + 2s? Perhaps it works when challenged, but not as the challenger?

Another thought is BG appears to not be waiting for the "done=1" before sending further commands after the "protover 2", but even so, I wouldn't think that would cause it to then not send "level".
Thanks a lot, I can reproduce and fixed for the next release. It is turn out there is a bug on playing book moves for Winboard engines.

However, I can't reproduce the missing "level". Can you check if you see it (command "level") in tournament games? Thanks
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
User avatar
RubiChess
Posts: 673
Joined: Fri Mar 30, 2018 7:20 am
Full name: Andreas Matthies

Re: Banksia GUI released

Post by RubiChess »

I tried to download the Linux binary from your download page but there's no file behind the link.