UNPKG

ymir-js

Version:

This toolkit is created to make it easier for you to develop games like chess, checkers, go, match 3 puzzle and more. It is still under development.

9 lines (8 loc) 314 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const board_1 = require("./board"); const simulate = (board, callback) => { const virtualBoard = new board_1.default().updateBoard(JSON.parse(JSON.stringify(board))); return callback(virtualBoard); }; exports.default = simulate;