generate rudimentary moves list from SAN notation

This commit is contained in:
2026-06-20 20:20:42 +02:00
parent 22c4e0d5fd
commit 014ca0d18c
2 changed files with 13 additions and 9 deletions
+2 -3
View File
@@ -34,12 +34,11 @@ export const ChessBoard = {
const move = this.chess.move({ from: orig, to: dest, promotion: 'q' });
if (move) {
const san = move.san
this.pushEvent("move_played", {
from: orig,
to: dest,
san: san,
fen: this.chess.fen()
fen: this.chess.fen(),
san: move.san,
});
const nextTurnColor = this.chess.turn() === 'w' ? 'white' : 'black';