RustとWebAssembly (wasm-pack) を使用して実装された、対話型のコンウェイのライフゲームです。 An interactive implementation of Conway's Game of Life using Rust and WebAssembly (wasm-pack).
- Rust & Wasm Powered: ゲームロジックをRustで記述し、WebAssemblyとして実行することで高速な計算を実現。
- Core logic written in Rust, running as WebAssembly for high performance.
- Direct Memory Access: Rustの線形メモリにJavaScriptから直接アクセスして描画。
- Rendering by directly accessing WebAssembly linear memory from JavaScript.
- Interactive Controls:
- ⏯ Play/Pause: アニメーションの一時停止と再開。
- 🖱️ Click to Toggle: 盤面をクリックしてセルの生死を切り替え。
- Modern UI: 目に優しいダークモードデザイン。
- Dark mode design.
- Rust:
cargo - wasm-pack:
cargo install wasm-pack - Node.js & npm
-
Build the WebAssembly part (Wasmのビルド)
wasm-pack build
-
Install dependencies (依存関係のインストール)
cd www npm install -
Start the local server (サーバー起動)
npm run start
-
Open in browser (ブラウザで確認) Access
http://localhost:8080
This project is licensed under the MIT License.