Created
May 8, 2023 19:02
-
-
Save sjdonado/359efaaacd32c6a674d131d4eb57ebae to your computer and use it in GitHub Desktop.
Tower of Hanoi in P5.js + WASM - Dev.to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getHanoiMoves = async (n) => new Promise((resolve) => { | |
wasmWorker.onmessage = (event) => resolve(event.data); | |
wasmWorker.postMessage({ n }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment