GitHunt
KE

keynmol/scalajs-wasm-game-of-life

Conway's Game of Life using experimental Scala.js WebAssembly backend

Game of Life using Scala.js and Webassembly

This project implements a very simple Game of Life frontend,
and packages it as both webassembly and plain JS using Scala.js experimental Webassembly backend.

Live demo

Developing

  1. Run npm install once
  2. In two separate terminals:
    1. sbt ~buildFast
    2. npm run dev

Then open http://localhost:5173 and enjoy coding with live reload!

Building in release mode

  • sbt clean buildRelease will produce a static site build in dist/ folder

  • SCALAJS_VERSION=1.18.2 sbt clean buildRelease will do the same as above, but allows setting Scala.js version

Languages

Scala78.6%HTML19.3%JavaScript1.5%CSS0.6%

Contributors

Created September 28, 2024
Updated May 3, 2025
keynmol/scalajs-wasm-game-of-life | GitHunt