Smart panda is a simple tetris engine intended (but not limited) to be used as a dev environment for Artificial Intelligences. For more information (and a live demo) checkout my personal page.
Please note that this is my first attempt at doing anything serious with rust and wasm. Also I never used webpack before. So expect some nasty things in this repo. Things are all over the place. Rust code, javascript files, html and even the output of webpack. If you are learning (just like I am), this repository may have some bad practices, so beware. As I learn more I should make things more tidy around here.
- A cool (or silly) name
- Implemented in rust 🦀
- Compiles to WASM
- Has a JavaScript interface
- Runs in the browser
- ???
- Live demo?
- Clone this repo
- Have the rust toolchain installed
- Have wasm-pack installed
- Run
npm install
. If you dont have it, you can get it here - Run
wasm-pack build
- Run
npm link
inside thepkg
folder - Run
npm link smart-panda
on the project root - Run
npm run start
- Go to
http://localhost:8080/
There is not a lot about rust and wasm around. So if someone this repository becomes helpful for someone than I will be happy :D
Checkout this for a simple (yet complete) tutorial of how to make a Conway's Game of Life using rust/wasm and some javascript. A more indepth and broad tutorial is available here.
Enjoy.
Check the LICENSE file for more information.