Skip to content

Commit

Permalink
Correct pv
Browse files Browse the repository at this point in the history
  • Loading branch information
abulmo committed Dec 26, 2020
1 parent 3fb36fe commit 3569d3e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/move.d
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,14 @@ struct Line {

void set(const Move m, const ref Line l) { clear(); push(m); push(l); }

string toString(const Board b) const {
string toString(Board b) const {
string s;
foreach (m; move[0 .. n]) s ~= m.toPan(b) ~ " ";
foreach (m; move[0 .. n]) {
s ~= m.toPan(b) ~ " ";
b.update(m);
}
foreach_reverse (m; move[0 .. n]) b.restore(m);

return s;
}
}
Expand Down

0 comments on commit 3569d3e

Please sign in to comment.