📜  chess.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:33.936000             🧑  作者: Mango

代码示例1
var board2 = Chessboard('board2', {
  draggable: false,
  dropOffBoard: 'trash',
  sparePieces: true
})

$('#startBtn').on('click', board2.start)
$('#clearBtn').on('click', board2.clear)