var board2 = Chessboard('board2', { draggable: false, dropOffBoard: 'trash', sparePieces: true }) $('#startBtn').on('click', board2.start) $('#clearBtn').on('click', board2.clear)
# NPM npm install chess.js # Yarn yarn add chess.js