12 lines
251 B
TypeScript
12 lines
251 B
TypeScript
|
import init, { CoreApp } from "kifu-wasm";
|
||
|
|
||
|
const main = async () => {
|
||
|
await init();
|
||
|
let coreApi = new CoreApp();
|
||
|
|
||
|
let response = await coreApi.dispatch({ type: "PlayingField" });
|
||
|
console.log("playing field response: ", response);
|
||
|
};
|
||
|
|
||
|
main();
|