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.
294 projects
jev-laya-cube-arena
189-sketch
Compares Jev and local Laya on Rubik’s cube next-move decisions
impulse
roby-avo
Creates a physics arena to play against decision models and inspect their choices
LayaGamer
psurge1
Provides harnesses and a web dashboard for playing games with Laya decision agents
layaUI-HK
whksoup
Runs a local Laya playground, games, benchmark, and agent skill
jev-spaceshooter-demo-laya
jstdlee
Steers a retro space shooter with Laya decision models through a local API
laya-decision-lab
clearflow-automation
Presents recorded Laya Snake decision runs and research findings in a static browser replay
laya-plays-mtg
FabioCeleste
A Magic: The Gathering Arena draft companion uses fine-tuned Laya models for picks and deckbuilding
elevator-decision-arena
CircleCI-Research
Benchmarks Jev, Laya, and classic algorithms for simulated elevator dispatch decisions
chess-war
jhonsu01
A pixel-art chess match pits local Laya against Jev using identical typed questions
RayCodes_Mica_4B
47thtechcorner
Compares Mica and Laya decision models in a real-time Pac-Man evasion game
laya-snake
deepondas
Runs the Laya decision model as it plays Snake in a live 3D game
swarm-laya
Aditharavind
Fine-tunes Laya for per-robot decisions in a simulated swarm robotics environment
test-laya
tom-scott-dev
Runs a 2D town game where NPC behavior is driven by local Laya decisions
laya-plays-porklike
AlexandroBG
Uses Laya decisions to guide an observed-only agent through the Porklike roguelike
Jev_vs_Laya_decision_games
minanayernia
Game-theory experiments compare Jev and Laya across six games with analysis and a browser app
citypulse
rohandesilvaa
An offline emergency dispatch game that uses Laya to triage calls
llama-whisperer
leehack
A 3D puzzle game where Laya interprets plain-language orders through llamadart
Simul
Demo
A civilisation simulator where people and governments decide with Laya in the browser
jev-touhou
NatBrian
Uses local Laya and Mica decision models to control the Taisei game in real time
LayaGameSuggest
SukandVM
Uses Laya to classify game specifications and Ollama to explain recommendations
laya-experiments
row-huh
Snake game with a Laya autopilot that falls back to a safe move
laya-tetris
Hiohk
A browser-based Tetris game uses Laya to choose and explain piece placements
tetris_laya_llm
TinlerLin
Runs a Tetris game with optional local Laya decision review alongside LLM and heuristic strategies
laya-snake-benchmark
IYIcode
Benchmarks Laya on Snake gameplay with recorded results and browser-based reruns
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