Open simondorfman opened 3 years ago
It's the transcript to get to the position followed by the best move in the resulting position.
The first three lines are meta.
I've used this nice node visualization package in R before that might be useful: https://datastorm-open.github.io/visNetwork/ I'll give it a shot sometime.
Trying to make sure I understand the file format, I decided to step through some game moves and look for the corresponding moves in the opening book. Using the 600 second book from here: https://github.com/skotz/volcanoes/issues/24#issuecomment-739426971
I'm playing as blue. I go N26 first.
Next, MCTS Opening Book goes N15, then N06.
I found those parts of the file, but I'm wondering what the next best move is for blue, according to the opening book and I don't see a match for N26 N15 G N06
in the file. Why is that?
Screenshots:
N15 move makes sense:
N06 move makes sense:
Can't find N26 N15 G N06
:
To limit the number of possible permutations, I consider moves in pairs. Basically there's a Blue opening book and an Orange opening book. Otherwise we'd be looking at roughly 80^5 = 3276800000 possible states, which won't work.
For blue, we just need one book move for the initial position. Then for every 80^2 (roughly) possible opponent moves we decide on our next best two moves. Basically blue's opening book is 1 + 80^2 * 2 (ish) lines.
For orange, for every possible starting blue move we compute the next two moves. Basically orange's opening book is 80*2=160 (ish) lines.
In your example the book opening that orange played was a combo of these two entries:
Blue played N26 which brought the state to N26
so orange looked up the next move here:
After orange played N15
, the state was N26 N15 G
so orange looked up his second move here:
Ok, I think I'm getting it.
After the three meta lines, I'd describe the file like this:
I'll map out another example to make sure I do get it.
I let the opening book play itself (with just 2 seconds of think time) and got this game result:
N07 S28 G N05 N03 G S31 N14 G S03 S04 G N16 S15 G N34 N32 G S35 S17 G N15 S35+ G N33 S17 G N17 S18 G S37
Looking up each move in the opening book:
Blue plays N07:
Orange plays S28:
Growth
Orange plays N05:
Blue plays N03:
Growth
Blue plays S31:
Orange plays N14 which doesn't show up in the book because we only go 7 moves deep so far...
Instead of creating some sort of node visualization, I was thinking something similar to your "Display Engine Analysis Overlay" might be useful. Something like this:
@skotz could you explain for opening book format please? Is it something like move considered followed by best-counter-move?:
I want to understand the format and maybe generate a more human-readable view of it so I can try to verify how strong they are. (based on my current understanding of a strong move...)