Skip to content
← all work

Mahjong Engine

A Stockfish-style evaluator for mahjong.

A small research-flavoured project: can a fast static evaluator, the kind chess engines use before deep search, say something useful about a game built on hidden information? The core is ruleset-agnostic, with NMJL 2026 as the first supported ruleset.

highlights

  • Ranks viable target hands and suggests a discard from your tiles + state
  • Explores static evaluation vs. full search on hidden information
  • Ruleset-agnostic core with NMJL 2026 support

built with

  • TypeScript
  • SvelteKit
  • Vitest
Source ↗

· wander the ring ·