Published
Edited
Aug 20, 2019
1 fork
1 star
Visualizing chess games - Part 2
Visualizing chess games
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
myChess = require("chess.js")
Insert cell
Insert cell
Insert cell
import {text, textarea, radio, slider} from "@jashkenas/inputs"
Insert cell
Insert cell
Insert cell
currentGame = {
const chess = new myChess();
chess.load_pgn(anyPgn);
/*
// make some moves
chess.move('e4');
chess.move('c5');
chess.move('Nf3');
chess.move('Nc6');
chess.move('d4');
chess.move('cxd4');
*/
return chess.history({ verbose: true });
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more