Skip to content

v0.1.0 - Pong with SHAP AI Explainability

Choose a tag to compare

@noahgift noahgift released this 09 Dec 22:53
· 76 commits to main since this release

Jugar v0.1.0 - WASM-First Game Engine

The first release of Jugar, a WASM-native game engine with ABSOLUTE ZERO JavaScript computation.

Highlights

Pong Demo with SHAP AI Explainability

  • Real-time SHAP-style feature importance visualization
  • Watch the AI explain its decisions as it plays
  • Downloadable .apr AI profile format

Game Modes

  • SinglePlayer: Play against adaptive AI
  • TwoPlayer: Local multiplayer
  • Demo: Watch AI vs AI with full explainability widgets

Quality

  • 672 passing Rust tests
  • 38 Playwright browser tests
  • 95% code coverage
  • Load tested with chaos scenarios

Live Demo

Play now at: https://interactive.paiml.com/pong/

Installation

Add to your Cargo.toml:

[dependencies]
jugar = "0.1"
jugar-web = "0.1"

WASM Build

wasm-pack build --target web crates/jugar-web

Architecture

  • Pure Rust with wasm32-unknown-unknown target
  • JSON render commands for Canvas2D
  • Input events forwarded from minimal JS loader
  • WASM binary: 311KB

Crates

  • jugar - Main entry point
  • jugar-core - ECS and game loop
  • jugar-physics - Physics with SIMD support
  • jugar-input - Unified input handling
  • jugar-render - Render command generation
  • jugar-ui - Responsive UI system
  • jugar-audio - Audio event system
  • jugar-ai - AI with SHAP explainability
  • jugar-procgen - Procedural generation
  • jugar-web - WASM browser integration