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
laya-f1-strategy-pOc
MiguelMF-Coder
Replays historical Formula 1 races to study typed strategy decisions, backtests, and calibration
ai-investor-game
axyi
Runs a console negotiation game where Laya makes the investor's decisions
laya-blackjack
hugging-apps
An interactive blackjack demo using a Laya fine-tune to predict action preferences and game outcomes
sima-laya
dotimothy
Compiles and runs Laya decision models on SiMa.ai Modalix hardware
laya-qbert
mateusbsmg
Fine-tunes Laya to play Q*bert and reports its performance against a teacher and baseline
laya-exp
ZixuanHuang1995
Demonstrates Laya for ticket triage, question answering, and board-game decisions
appLaya
vitormarcio-nuvme
A Python road game uses Laya through a System One API to control the driver
c-elegans-valencia
mateusbsmg
Simulates C. elegans brains and compares connectome behavior with Laya-guided actions evolved by a genetic algorithm
laya-snake-dgx
yihsinhung
Ports the Laya Snake demo to PyTorch and runs it with CUDA on NVIDIA DGX Spark
laya-cycle-dashboard
gchat137
Displays replayable simulation results from Laya decision-model game runs
gatekeeper
weeklyvillain
A word game and interactive explainer uses Laya multilingual as its AI guard
laya-terminal-pong
victormartinho360
Implements terminal Pong with Laya-controlled paddles through a local HTTP server
laya-biome
a-nom-ali
Fine-tunes Laya for biome, flora and fauna decisions in a planet-generation demo
LAYA
Waqar-ahmedkhan
Offers four browser games powered by local CPU inference with the Laya decision model
visual-laya
ring-experimental
Uses fine-tuned Laya to judge player-written dialogue in a Korean visual novel
sudoku-laya-ai
KrisnaSantosa15
A browser-based Sudoku game uses Laya to recommend number placements
the-new-turing-test
glowleaf
A Magic: The Gathering game harness tests Laya as a player
snake-laya-ai
KrisnaSantosa15
A browser-based Snake game uses Laya to choose safe directions in real time
laya-pixel-town
JohannesRabauer
A pixel-art town simulation lets Laya decide the daily actions of its residents
Laya-ChessBot
anshul-guleria
A chess bot uses a fine-tuned Laya model to choose moves
jev_flappy_bird
iamdgarcia
Controls Flappy Bird by using Laya ONNX inference to choose whether to flap
laya-chess
datafreak
Lets users play chess against a Laya model fine-tuned on Stockfish-rated moves
laya-demo
bbaotran
Snake game played by Laya on CPU, with Jev and other decision backends for comparison
pybullet-yolo-laya-sorter
cf2018
Uses Laya to direct a simulated robot arm sorting colored cups
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