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
laya-chess
buzzo123
Provides chess games against a computer that selects moves using Laya
laya-mlx
MohammadAsadi-7
Runs Laya typed-decision models natively on Apple Silicon using MLX
lunar-laya
mraad
Runs Laya typed decisions on Apple MLX to guide a lunar-landing simulation
laya-flappy
cohenom
Uses the Laya model to vote on live game states in a flappy-bird-style physics game
laya-tetris
cohenom
Runs Tetris with a placement-search heuristic while displaying Laya's live board-state decisions
laya-rogue
satkur
Experiments with Laya-controlled play in a Rogue-like game, including a fine-tuned decision head
laya-test
petrixh
Runs Laya as the decision-making pilot in a browser game with reproducible evaluations
laya-snake
cohenom
Uses Laya’s text-decision classifier to choose Snake movements on each game tick
Laya-2048
DjTaNg-404
Uses local Laya weights to play 2048 with browser, terminal, and batch-testing interfaces
laya-2048
cohenom
Shows Laya's live move votes alongside a heuristic 2048 player
laya-snake-cuda
kuchris
Compares Laya and SemIf for local real-time Snake decisions with a CUDA dashboard
lunar-mpc-laya
mraad
Pairs Laya with adaptive model-predictive control in a lunar lander decision game
laya-snake-arena
sathwikkuncham
Compares local Laya and Jev decision engines in a configurable Snake arena
jev-laya-chess-bench
abe17124
Compares TypeSafe Jev and Laya in head-to-head chess games using legal moves
decisionmakertest
vittoriobrehautduran
Benchmarks Jev and Laya on typed decisions, labeled cases, and a small dungeon game
screenquest
DanielTea
Controls a game on Apple Silicon with screenshot perception, Laya decisions, and vision-language planning
laya
iaeluk
Runs a local Laya-powered Snake game with a CUDA server and browser version
LayaBOT
tomikan1208-code
Uses Laya decisions to control a Minecraft combat bot through Mineflayer
laya-t-rex-runner
10086ggqq
A browser-based T-Rex runner uses typed-decision models and distilled agents to choose actions
laya-tictactoe
Kasa-Harendra
A terminal Tic-Tac-Toe demo runs the Laya model locally through Core ML on Apple Silicon
werewolf-laya
CallSohail
Runs a Werewolf game in which bots use Laya to score suspicions, choose intentions, and vote
laya-dino
JakkNaj
A fine-tuned Laya model plays Chrome Dino using a Python backend and TypeScript frontend
laya-duum
Hadlock
Uses the Laya Core ML decision model to play the Duum game from semantic state
laya-minesweeper
Animal2404
Demonstrates and evaluates Laya’s mine-risk judgments against a Minesweeper constraint solver
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