Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life (Rust + WebAssembly)

RustとWebAssembly (wasm-pack) を使用して実装された、対話型のコンウェイのライフゲームです。 An interactive implementation of Conway's Game of Life using Rust and WebAssembly (wasm-pack).

🎮 Features (特徴)

  • 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.

🛠️ Prerequisites (事前準備)

  • Rust: cargo
  • wasm-pack: cargo install wasm-pack
  • Node.js & npm

🚀 How to Run (実行方法)

  1. Build the WebAssembly part (Wasmのビルド)

    wasm-pack build
  2. Install dependencies (依存関係のインストール)

    cd www
    npm install
  3. Start the local server (サーバー起動)

    npm run start
  4. Open in browser (ブラウザで確認) Access http://localhost:8080

📝 License

This project is licensed under the MIT License.

About

Interactive Game of Life web app powered by Rust and Wasm. Features play/pause controls and cell editing. / RustとWasm製のインタラクティブなライフゲーム。再生制御やセル編集機能を搭載。

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages