Progress On Bricabrac

Discussion of chess software programming and technical issues.

Moderators: hgm, chrisw, Rebel

Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

Sven wrote: Fri Apr 30, 2021 9:22 am Good news, Mike!

Hard to believe, though, that it is actually a compiler bug ... For me it still looks like there is some undefined behaviour causing the compiler to do "undesired" optimizations, unless you prevent him to do so by switching optimizations off.

A possible example might be the use of = where == was intended.

Code: Select all

int a = complex_calculation(b, c, d);
if (a = 42) ...
This may cause the compiler to assume that b, c and d are "unused", and he might even throw away the function complex_calculation() if noone else uses it, which he might find out during "whole program optimization". Not sure if you would see a warning about that ...
Thank you Sven. I went over the code so many times until I was absolutely sure it was correct. So I started looking over all the compiler settings until I happened to see, whole program optimization. Other optimizations were set to maximum speed. This is the only warning -
Severity Code Description Project File Line Suppression State
Warning C26812 The enum type '<unnamed-enum-OO>' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). Bricabrac D:\source\repos\Bricabrac\Bricabrac.cpp 2512
- and I tested and ruled it out as the source of the bug. The bug was still there even though I changed the enum to all constexpr. As soon as 3-fold is working correctly I'll upload the source and an executable. If you are so inclined maybe your eye will see something I missed if there is something to find. Thanks.
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Progress On Bricabrac

Post by Sven »

I will certainly give it a try once your source code is there - even if it is only for the purpose of proving myself wrong :wink:
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

hgm wrote: Fri Apr 30, 2021 10:21 am My approach to debugging is to have a number of conditional print statements in the code: if(PATH) printf("%d:%d ...", ply, depth, ...);. In a 'release version' PATH is #defined as 0, which makes the optimizer delete them. If I want to debug I redefine PATH in steps, starting with ply == 0 (to get diagnosics from he root), and then zooming in onto the problem through ply==0 || path[0]==MOVE0 && (ply==1 || path[1]==MOVE1 && (ply==2 ...)) to limit the printed info to nodes along the path specified by MOVE0, MOVE1 etc.

In general I use only a single such print satement, right after UnMake(), to print the move (text and intenral hex encoding), score, and best score. If I am debuging a crash I put an identical print statement before MakeMove(), making sure it is crash-proof (printing to stderr or using fflush(stdout)), to detect in which node the crash occurs. After I identified the node that causes the problem implied by the scoring of the branch, I start to add extra conditional prints in the code to see what the problem is.

The thing I hate most is when adding a print statement changes the behavior. This tends to happen when you are inadvertently using an uninitialized local variable, for which the compiler allocated stack memory hat was also used during printf. I even developed a way to do 'transparent printing', which avoids modifying the stack by saving and restoring it, though the following routines:

Code: Select all

int i, saved[10000];
void S() { int stack[10000]; for(i=0; i<10000; i++) saved[i] = stack[i]; }
void R() { int stack[10000]; for(i=0; i<10000; i++) stack[i] = saved[i]; }
(In a separate source file, compiled without optimizations.) And then sandwich any behavior-altering prints between those: if(PATH) S(), printf(...), fflush(stdout), R();. That usually helps to restore the reproducibility of the behavior.

If there is a difference between two versions that should behave the same, I run them both with the printing enabled, (starting in the root), and then follow the move that produced the first deviating score in both versions, until it becomes clear where he difference was generated.

So far this always enabled me to find any bug in a reasonable amount of time, even if it manifested itself only at 24 ply.
Interesting. I kind of have my own way of using printf. When I wrote RomiChess the problem was the opposite. It would run in release mode just fine but would not run in the debugger.
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

A couple of days ago I went on a road trip to Idaho Falls with my neighbor. We went to a gazillion stores and it totally wore me out. So the last couple of days I did more harm than good trying to code. Today however, I seem to have undone the damage and am back on track with Bricabrac. Hey, that almost rhymes. :D

Zobrist keys have been added successfully and a repetition table created. And it seems to be working! 8-) In the following game there were plenty of opportunities for 3-fold repetitions and Bricabrac managed to not play into any.
[pgn][Event "TSCP.at"]
[Site "DESKTOP-HFVHK2B"]
[Date "2021.05.02"]
[Round "1"]
[White "Bricabrac"]
[Black "Tscp181"]
[Result "1-0"]
[BlackElo "2200"]
[ECO "A70"]
[Opening "Benoni"]
[Time "13:57:39"]
[Variation "Classical, 8.Bd3"]
[WhiteElo "2000"]
[TimeControl "0+2"]
[Termination "normal"]
[PlyCount "281"]
[WhiteType "human"]
[BlackType "human"]

1. d4 Nf6 2. c4 c5 3. d5 e6 4. Nc3 exd5 5. cxd5 d6 6. e4 g6 7. Nf3 Bg7 8.
Bd3 {(f1d3 b8d7 c1f4 d8e7 e1g1 d7e5 d3c2) +1.02/7 2} Bg4 {(c8g4 e1g1 e8g8
c1f4 f8e8 a1c1 f6e4 c3e4 g4f3 d1f3 g7b2) -0.88/6 1} 9. Bf4 {(c1f4 d8b6 a1b1
h8f8 e1g1 b8d7 b1c1) +1.04/7 2} Qb6 {(d8b6 d3b5 f6d7 a1b1 f7f5 b5d3 g7c3
b2c3 g4f3 d1f3) -0.57/5 1} 10. Qc1 {(a1b1 b8d7 e1g1 d7e5 d3b5 f6d7 b5e2)
+1.04/7 2} Bxf3 {(g4f3 g2f3 f6h5 f4e3 b8d7 e1g1 g7c3 c1c3) -0.35/6 1} 11.
gxf3 {(g2f3 b8d7 e1g1 a8d8 c1c2 h8f8 a1d1 d7e5) -0.01/8 2} Nh5 {(f6h5 f4d2
b8d7 f3f4 e8c8 e1g1) -0.27/6 2} 12. Bh6 {(f4h6 g7d4 e1g1 b8d7 h6e3 a8d8
e3d4 c5d4) +0.27/8 2} Bxh6 {(g7h6 c1h6 b6b2 a1c1 b8d7 e1g1) +1.35/6 1} 13.
Qxh6 {(c1h6 b6b2 a1c1 b8d7 e1g1 b2a3 f3f4 a8d8 h2h3) +0.68/9 2} Qxb2 {(b6b2
a1c1 b8d7 c3b5 b2e5 e1g1) +1.40/6 2} 14. Rc1 {(a1c1 b8d7 e1g1 a8d8 f1e1
b2a3 d3f1 d7e5 f1g2) +0.51/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
Nd5 {(c3d5 f7f8q d5f4 g2g3 f4e2 g3g4 e3d4 a6e2 d4d5) -18.80/7 1} 137. f8=Q
{(f7f8q e3d4 a6d6 d4c4 f8f7 c4c3 d6d5 c3c2 d5e6 c2b1) +19.14/10 2} Nf4+
{(d5f4 g2f1 f4d5 f8f2 e3e4 a6e2 d5e3 e2e3 e4d5 f2d2 d5c6 f1e2) -19.21/6 1}
138. Kf1 {(g2f1 e3f3 a6a4 f3g3 a4f4 g3h3 f8h6 c2b1 h3g2) +M4/10 2} Nd3
{(f4d3 f8e7 e3d4 e7d6 d4c3 a6d3 c3b2 d6a3) -M4/6 1} 139. Qc4 {(a6c4 e3d2
f8d8 d2d1 d8d3 e3f4 d3g3) +M3/9 2} Kd2 {(e3d2 f8d8 d2e3 d8d3) -M2/5} 140.
Qd8 {(f8d8 d2d1 d8d3 d2d1) +M2/9 2} Ke3 {(d2e3 d8d3) -M1/3} 141. Qdxd3#
{(d8d3 e3f4) +M1/9 2} 1-0
[/pgn]
Keeping in the spirit of originality Bricabrac keeps two full 64 bit hash signatures. Given that on todays hardware with multithreading it is possible to search many tens of billions of positions at long time controls the added accuracy may be a good thing. It however did slow the node rate more than anticipated.
r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
R N B Q K B N R

Hash Key = 7f1909a61f366a6b
Hash Sig = 18ad3ae65ae07f66
Reps = 1
Enter Command(w):
st 30
r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
R N B Q K B N R

Hash Key = 7f1909a61f366a6b
Hash Sig = 18ad3ae65ae07f66
Reps = 1
Enter Command(w):
go

Begin Depth 1
1 36 0 40 g1f3

Begin Depth 2
2 0 0 466 g1f3 g8f6

Begin Depth 3
3 35 0 2808 g1f3 g8f6 d2d4

Begin Depth 4
4 0 0 20688 g1f3 g8f6 d2d4 d7d5

Begin Depth 5
5 33 1 109321 g1f3 g8f6 d2d4 d7d5 b1c3

Begin Depth 6
6 0 3 257005 g1f3 g8f6 d2d4 d7d5 b1c3 b8c6

Begin Depth 7
7 28 11 958266 g1f3 g8f6 d2d4 d7d5 b1c3 b8c6 c1e3

Begin Depth 8
8 8 28 2541359 b1c3 g8f6 e2e4 b8c6 g1f3 e7e5 d2d4 f8d6

Begin Depth 9
9 29 96 8671981 e2e4 b8c6 g1f3 g8f6 b1c3 d7d5 e4d5 f6d5 d2d4

Begin Depth 10
10 13 372 34357285 e2e4 e7e5 g1f3 b8c6 f1d3 g8f6 e1g1 d7d5 b1c3 c8e6

Begin Depth 11
11 31 1593 144464906 e2e4 b8c6 d2d4 e7e6 b1c3 d7d5 e4e5 f8b4 g1e2 g8e7 c1e3

Begin Depth 12
e2e4 17
g1f3 5
d2d4 5
b1c3 5
e2e3 0
c2c4 15
g2g3 13
a2a3 7
d2d3 2
c2c3 1
h2h3 1
a2a4 -1
b2b3 -10
b1a3 -11
h2h4 -12
g1h3 -20
f2f4 -24
b2b4 -26
f2f3 -38
g2g4 -48

Move Played: E2E4 Score: 31
r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . P . . .
. . . . . . . .
P P P P . P P P
R N B Q K B N R

Hash Key = 62163da122f544ce
Hash Sig = 5b3660c064b0ed8
Reps = 1
ep square = 20
Enter Command(b):

If one looks at the move list e2e4 is scored +17 and yet as played it is scored at +31. That is because the last iteration is not being thrown out if a move searched in an incomplete iteration - margin is > than the move of the previous iteration. In this case it is the same move. I have no idea if this is a good or bad idea. I have read that incomplete iterations are simply thrown away.

There may still be a problem though. Bricabrac is not castling with the black pieces. And is losing games because of it. It used to castle with the black pieces but not currently. So who knows what I did to break that.

Next will be to replace the PESTO evaluation. They were handy for early development and debugging but now it is time to replace them.
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Progress On Bricabrac

Post by Sven »

Mike Sherwin wrote: Sun May 02, 2021 11:00 pm If one looks at the move list e2e4 is scored +17 and yet as played it is scored at +31. That is because the last iteration is not being thrown out if a move searched in an incomplete iteration - margin is > than the move of the previous iteration. In this case it is the same move. I have no idea if this is a good or bad idea. I have read that incomplete iterations are simply thrown away.
There is no need to always throw away incomplete iterations. Of course you do that automatically if the current best move of the new iteration is the same as the best move kf the previous iteration at the moment of timeout, since there is no essential new information coming from the new iteration. But once you have completed the search of at least two root moves and your search changes its mind to prefer a different move, you have two choices other than ignoring that:
1) accept the new best move, terminate search and play it (because you already know that the old best move is no longer best with the current search depth!),
2) allocate more time (if possible) and try to complete the current iteration.

Option 1) should be obvious, and is really trivial to implement (in the ID loop, maintain only one "best move", always update it with the move returned by searching the root node, and let that root search always return the best move found so far even if not all root moves were searched).. Playing the old best move despite knowing it is no longer best can sometimes be disastrous.

Option 2) looks attractive especially if the old best move now gets a significantly worse score so that you may assume some trouble.

It may even be feasible to estimate how likely it is that you will be able to complete searching at least the first two root moves, and possibly decide not to start the new iteration at all because it will most probably not be able to reach the point where changing mind is even possible.
There may still be a problem though. Bricabrac is not castling with the black pieces. And is losing games because of it. It used to castle with the black pieces but not currently. So who knows what I did to break that.
You introduced a new compiler bug 😜
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

Sven wrote: Mon May 03, 2021 8:02 am
Mike Sherwin wrote: Sun May 02, 2021 11:00 pm If one looks at the move list e2e4 is scored +17 and yet as played it is scored at +31. That is because the last iteration is not being thrown out if a move searched in an incomplete iteration - margin is > than the move of the previous iteration. In this case it is the same move. I have no idea if this is a good or bad idea. I have read that incomplete iterations are simply thrown away.
There is no need to always throw away incomplete iterations. Of course you do that automatically if the current best move of the new iteration is the same as the best move kf the previous iteration at the moment of timeout, since there is no essential new information coming from the new iteration. But once you have completed the search of at least two root moves and your search changes its mind to prefer a different move, you have two choices other than ignoring that:
1) accept the new best move, terminate search and play it (because you already know that the old best move is no longer best with the current search depth!),
2) allocate more time (if possible) and try to complete the current iteration.

Option 1) should be obvious, and is really trivial to implement (in the ID loop, maintain only one "best move", always update it with the move returned by searching the root node, and let that root search always return the best move found so far even if not all root moves were searched).. Playing the old best move despite knowing it is no longer best can sometimes be disastrous.

Option 2) looks attractive especially if the old best move now gets a significantly worse score so that you may assume some trouble.

It may even be feasible to estimate how likely it is that you will be able to complete searching at least the first two root moves, and possibly decide not to start the new iteration at all because it will most probably not be able to reach the point where changing mind is even possible.
There may still be a problem though. Bricabrac is not castling with the black pieces. And is losing games because of it. It used to castle with the black pieces but not currently. So who knows what I did to break that.
You introduced a new compiler bug[/color] 😜
Thanks for the explanation. And it is not my fault if the compiler cannot keep up with my coding ideas! :mrgreen:
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

The very early beginning of an evaluator that starts each search with zero knowledge of chess other than material that learns to evaluate during the search. And its very first game! :D
[pgn][Event "Computer chess game"]
[Site "DESKTOP-HFVHK2B"]
[Date "2021.05.04"]
[Round "?"]
[White "Bricabrac"]
[Black "Bricabrac"]
[Result "0-1"]
[BlackElo "2200"]
[ECO "A00"]
[Opening "Saragossa Opening"]
[Time "10:18:23"]
[WhiteElo "2200"]
[TimeControl "0+30"]
[Termination "normal"]
[PlyCount "84"]
[WhiteType "program"]
[BlackType "program"]

1. c3 {(c2c3 a7a6 d2d3 e7e6 c1e3 d8h4 e1d2 f8d6 g2g3) +0.15/9 29} Nc6
{(b8c6 d1c2 a7a5 b2b3 c6a7 a2a3 b7b5 d2d3) -0.05/8 29} 2. b3 {(b2b3 c6b8
d2d4 g8h6 c1g5 h6f5 a2a3 f5d6) +0.08/8 29} d5 {(d7d5 e2e3 g8f6 a2a4 c8f5
d2d3 e8d7 a4a5) -0.05/8 29} 3. Bb2 {(c1b2 e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d2 {(c1d2 e2f1 g3f1
f6d4 f1e3 d4e3 d2e3 f3e3) -10.19/8 29} Bxf1 {(e2f1 g3f1 c8b8 d2a5 b8b1 e1d2
f3f2 d2d3 f2g1) +11.20/9 29} 41. Nxf1 {(g3f1 f6d4 f1e3 d4e3 d2e3 f3e3 e1f1
e3h3) -11.28/8 29} Rb8 {(c8b8 d2b4 b8b4 e1d2 f3f2 d2c1 f2g1 c1d2) +18.41/8
29} 42. Bb4 {(d2b4 b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) -M4/9 29} Rxb4
{(b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) +M4/9 29 White resigns} 0-1
[/pgn]
Pio
Posts: 335
Joined: Sat Feb 25, 2012 10:42 pm
Location: Stockholm

Re: Progress On Bricabrac

Post by Pio »

Mike Sherwin wrote: Tue May 04, 2021 7:10 pm The very early beginning of an evaluator that starts each search with zero knowledge of chess other than material that learns to evaluate during the search. And its very first game! :D
[pgn][Event "Computer chess game"]
[Site "DESKTOP-HFVHK2B"]
[Date "2021.05.04"]
[Round "?"]
[White "Bricabrac"]
[Black "Bricabrac"]
[Result "0-1"]
[BlackElo "2200"]
[ECO "A00"]
[Opening "Saragossa Opening"]
[Time "10:18:23"]
[WhiteElo "2200"]
[TimeControl "0+30"]
[Termination "normal"]
[PlyCount "84"]
[WhiteType "program"]
[BlackType "program"]

1. c3 {(c2c3 a7a6 d2d3 e7e6 c1e3 d8h4 e1d2 f8d6 g2g3) +0.15/9 29} Nc6
{(b8c6 d1c2 a7a5 b2b3 c6a7 a2a3 b7b5 d2d3) -0.05/8 29} 2. b3 {(b2b3 c6b8
d2d4 g8h6 c1g5 h6f5 a2a3 f5d6) +0.08/8 29} d5 {(d7d5 e2e3 g8f6 a2a4 c8f5
d2d3 e8d7 a4a5) -0.05/8 29} 3. Bb2 {(c1b2 e8d7 d2d4 d7e6 f2f3 e6f5 e2e3
f5g5) +0.10/8 29} Nf6 {(g8f6 d2d3 e8d7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f1 g3f1 c8b8 d2a5 b8b1 e1d2
f3f2 d2d3 f2g1) +11.20/9 29} 41. Nxf1 {(g3f1 f6d4 f1e3 d4e3 d2e3 f3e3 e1f1
e3h3) -11.28/8 29} Rb8 {(c8b8 d2b4 b8b4 e1d2 f3f2 d2c1 f2g1 c1d2) +18.41/8
29} 42. Bb4 {(d2b4 b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) -M4/9 29} Rxb4
{(b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) +M4/9 29 White resigns} 0-1
[/pgn]
Yes, king e8 to d7 was a real novelty 😁
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

Pio wrote: Tue May 04, 2021 7:36 pm
Mike Sherwin wrote: Tue May 04, 2021 7:10 pm The very early beginning of an evaluator that starts each search with zero knowledge of chess other than material that learns to evaluate during the search. And its very first game! :D
[pgn][Event "Computer chess game"]
[Site "DESKTOP-HFVHK2B"]
[Date "2021.05.04"]
[Round "?"]
[White "Bricabrac"]
[Black "Bricabrac"]
[Result "0-1"]
[BlackElo "2200"]
[ECO "A00"]
[Opening "Saragossa Opening"]
[Time "10:18:23"]
[WhiteElo "2200"]
[TimeControl "0+30"]
[Termination "normal"]
[PlyCount "84"]
[WhiteType "program"]
[BlackType "program"]

1. c3 {(c2c3 a7a6 d2d3 e7e6 c1e3 d8h4 e1d2 f8d6 g2g3) +0.15/9 29} Nc6
{(b8c6 d1c2 a7a5 b2b3 c6a7 a2a3 b7b5 d2d3) -0.05/8 29} 2. b3 {(b2b3 c6b8
d2d4 g8h6 c1g5 h6f5 a2a3 f5d6) +0.08/8 29} d5 {(d7d5 e2e3 g8f6 a2a4 c8f5
d2d3 e8d7 a4a5) -0.05/8 29} 3. Bb2 {(c1b2 e8d7 d2d4 d7e6 f2f3 e6f5 e2e3
f5g5) +0.10/8 29} Nf6 {(g8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29} Bxf1 {(e2f1 g3f1 c8b8 d2a5 b8b1 e1d2
f3f2 d2d3 f2g1) +11.20/9 29} 41. Nxf1 {(g3f1 f6d4 f1e3 d4e3 d2e3 f3e3 e1f1
e3h3) -11.28/8 29} Rb8 {(c8b8 d2b4 b8b4 e1d2 f3f2 d2c1 f2g1 c1d2) +18.41/8
29} 42. Bb4 {(d2b4 b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) -M4/9 29} Rxb4
{(b8b4 e1d2 f3f2 d2c1 b4b1 c1b1 f2b2) +M4/9 29 White resigns} 0-1
[/pgn]
Yes, king e8 to d7 was a real novelty 😁
It's just a baby less than a day old! :wink:
Mike Sherwin
Posts: 917
Joined: Fri Aug 21, 2020 1:25 am
Location: Planet Earth, Sol system
Full name: Michael J Sherwin

Re: Progress On Bricabrac

Post by Mike Sherwin »

And baby Bric eval won its second game ever played, against TSCP. And this was something that I did not expect. And was probably a lot lucky!
[pgn][Event "Bric000"]
[Site "DESKTOP-HFVHK2B"]
[Date "2021.05.04"]
[Round "1"]
[White "Bricabrac"]
[Black "Tscp181"]
[Result "1-0"]
[BlackElo "2200"]
[ECO "A70"]
[Opening "Benoni"]
[Time "12:33:17"]
[Variation "Classical, 7...Bg7"]
[WhiteElo "2200"]
[TimeControl "0+10"]
[Termination "normal"]
[PlyCount "169"]
[WhiteType "program"]
[BlackType "program"]

1. d4 Nf6 2. c4 c5 3. d5 e6 4. Nc3 exd5 5. cxd5 d6 6. e4 g6 7. Nf3 Bg7 8.
a3 {(a2a3 e8g8 h2h3 g8h8 g2g4 h7h6 g4g5) +0.03/7 9} O-O {(f6g4 c3b5 a7a6
h2h3 g4e5 b5c3) -0.57/6 9} 9. h3 {(h2h3 d8e8 d1e2 b7b5 e2c2 b5b4 f1b5)
+0.03/7 9} Re8 {(d8e8 f1b5 c8d7 b5d3 c5c4 d3c2) -0.22/6 9} 10. Nd2 {(f3d2
f6e4 c3e4 f7f5 f2f3 f5e4 f3e4) +0.01/7 9}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