generate rudimentary moves list from SAN notation
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user