Games played by Laya
Games are the most popular way to show what a fast decision model can do. Each frame becomes a state, the model answers a typed question, and the game acts on the answer. The best demos also show where Laya needs help from ordinary code.
138 projects
jev-demo
nadeem4
A demo site compares Jev and Laya playing games and includes benchmarks and agent experiments
vybir
Galactic717
Runs Laya locally with conformal error guarantees and includes score-based game-learning demos
laya-s-dungeon
ValchanOficial
A tactical auto-battler that uses Laya through ONNX Runtime to choose actions each turn
LAYA-RLCD
shyamsridhar123
Teaches RLCD and trains Laya pilots through a tactical game, lessons, and benchmarks
laya-mlx
Gates-456
Runs open-weight Laya typed decisions locally on Apple Silicon using MLX
laya-windows
mateusgl8
Ports a terminal Snake game to Windows with real-time decisions from the Laya model
Laya-Experiments
alperunlu07
Collects reproducible experiments using Laya, including a Pong controller comparison
laya-doom
dylanbstorey
Runs Laya in a real-time control loop to play Doom on Apple Silicon
laya-dino
that-daniel
Controls Chrome's dinosaur game with Laya through a real-browser decision loop
chess-laya
Kpaul-create
Combines Minimax, Laya, and Gemini to play chess through parallel consensus
laya-tetris-ai
Sharjeelbaig
Demonstrates Laya choosing Tetris placements from candidate board evaluations
laya-decision-web
LeeeeeeM
Runs a local browser demo for Laya decisions in Snake and side-scrolling game scenarios
laya-tetris-ai
htpu
Uses local Laya decisions to choose Tetris moves through a Chrome extension or Playwright bot
laya-snake-lab
shaunthebuilder
Combines a Snake game with Laya-powered autoplay, training, and live decision probabilities
Jev-vs-Laya
aarush-dhingra
Compares Jev and Laya as chess decision-makers in a local browser arena
jev-systemone-local
katya4oyu
Plans a local Jev-compatible System One server with MLX, Core ML, and ONNX Laya backends
laya-vs-dgpl-arena
vk-alto-none
Stages AI decision models in a game arena, including local Laya and hosted Jev
fly-brain-agent
shenjie002
Drives a browser-based fruit-fly simulation with Laya decisions and spiking-neuron dynamics
laya-murdle
reycardo
Parses Murdle puzzles with Laya and solves their clues using a constraint solver
try-laya
lin52025iq
Provides a Laya-first agent runtime with browser and Android control integrations
laya-rex
luiz0ar
A browser dashboard uses Laya decisions to control the T-Rex Runner game
laya-games
BM-Popcorn
Demonstrates Laya-driven turn-based games and fine-tunes the model on engine-labeled positions
jev-laya-tetris
HarryReidx
Benchmarks TypeSafe Jev against local Laya in a competitive Tetris duel
laya-mlx-voxel
yuxino
Builds voxel reliefs by using Laya-MLX to choose extrusion depths from image pixel statistics
Run one locally
Snake on a Mac from laya-mlx:
pip install 'laya-mlx[demo]'
hf download aac6fef/laya-multilingual-mlx
laya-snake
The README reports 75.40 moves/s over 2,400 moves on an M3 Max with --optimize --max-speed, with zero deaths and two visible safety interventions. laya-coreml has a Neural Engine version at 49.1 to 50.0 decisions/s.
Flappy Bird on an Intel CPU from flappy-laya-openvino-cpu, with one noul question per frame:
pip install -r requirements.txt
python flappy_bird.py
Its README reports a mean 28 ms per decision with the INT8 OpenVINO model.
More games
- laya-pong: browser Pong with a native Laya paddle at 18.7 ms p50 on Metal.
- laya-vs-jev: Laya (MLX) and Jev (API) play Chrome's T-Rex side by side.
- laya-vs-jev-arena: a snake race and a fighting game, Laya vs Jev or vs a human.
- open-jev-laya: Gomoku, Big Two and a 3D maze entirely in the browser.
- laya-playground: Flappy, a lane runner and Tetris, plus an editor.
- kevala: Tetris in the browser on WebAssembly and WebGPU.
- Laya4j: Snake and a Spring Boot Tetris in Java.
What the demos teach
- Describe the state in words. In laya-pong, the model matched the reference controller when the state was a sentence and never moved when it was three numbers. The Flappy Bird author saw the same effect: with a JSON dict the model answered about 0.9 on every frame.
- Make options phrases. "move the paddle up" beat "up" in laya-pong: 5/5 correct against 3/5.
- Keep a planner and a safety layer. The Snake and T-Rex demos use planner features and a safety layer that can override unsafe moves. Their scores measure the whole system, not the model alone, and the READMEs say so.
More ways to use Laya