Created
May 8, 2023 19:00
-
-
Save sjdonado/46f2948ffe7c0139edc3d600e252cd3b 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
import { get_moves } from '@wasm/games'; | |
onmessage = (event) => { | |
const moves = get_moves(event.data.n); | |
postMessage(moves); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment