Skip to content

Commit

Permalink
fix lichess cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Feb 4, 2024
1 parent 6a5038a commit 6570899
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/lichess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,12 @@ export async function getBestMoves(
100,
data.pvs?.map((m, i) => {
const uciMoves = m.moves.split(" ");
const posCopy = pos.clone();

const sanMoves = uciMoves.map((m) => {
const move = parseUci(m)!;
const san = makeSan(pos, move);
pos.play(move);
const san = makeSan(posCopy, move);
posCopy.play(move);
return san;
});

Expand Down

0 comments on commit 6570899

Please sign in to comment.