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
d1-ane
nathanrchn
Converts and benchmarks decision models on Apple Neural Engine, with a Tetris demo
laya-hangman
ZeynepSenaTaspinar
Runs a local Hangman game where the Laya decision model guesses letters
layaball-ios4
mannanshukla
Provides a Magic 8-Ball and decision games powered by the OpenRelay Laya decisions model
Laya-Plays-Starcraft
Jaesung-Jun
Connects Laya decisions to StarCraft: Brood War commands through BWAPI and CommandCenter
game_laya
blueyesess
Uses Laya to make typed decisions that control Mario in a live NES emulator
terraforge-packs
thomassanders3888-svg
Publishes ONNX NPC model packs derived from the Laya base model
Arlott-Auto-battle-with-Laya-system1
Deeno-Mythos
Uses Laya to control Arlott gameplay on an Android phone through scrcpy
Laya-Flappy-Bird
jglobo
Uses Laya to choose whether a Flappy Bird character should flap or wait
sky-team-ai-laya
wardraq
Implements a multiplayer Sky Team game with an optional Laya-powered AI player
landing-car
fl0wo
Compares typed-decision models by using their flight-control decisions to land a simulated car
Zenith-Laya-Decision-Layer
attu1409py
Provides a Laya decision layer for the TopGameAI Arena
arcade-decision-agent
fuleinist
Uses local Laya decisions to play browser arcade games, with Jev and OpenAI models supervising
DotaBotAI
Mohsen-Arshad
Benchmarks a synthetic Dota-style lane-control agent with optional Laya strategic advice
laya-vega-benchmark
shadowmkj
Benchmarks Laya and Vega playing Chrome Dino under real-time latency constraints
laya-pokesurvivor
garykhfung
Uses a local Laya checkpoint to control a browser-based PokéSurvivor game on Apple Silicon
laya-2048
ctfpanda17
Fine-tunes Laya with imitation learning and DAgger to play 2048
Laya-Trader
johnpg82
Adds browser-based Laya trade signals and personalized entry and exit suggestions to TradingView charts
Snapshot-Laya
Shisetsu-Code
Provides a local interface for reviewing Laya classifications of game controls using ONNX and DirectML
CharacterStage
Kagenou-Eta
Adds character sprites to SillyTavern chats and uses Laya to select their expressions
retro-judge
Maverick7
A benchmark compares Laya, Double DQN, imitation learning, and a scripted agent in Space Invaders
flylaya
leewbl
A fruit-fly behavior study combines connectome-driven motion with a Laya intent layer
Laya_pokemon
KevinYu969
Connects the Laya decision model to PyBoy for local Pokémon control experiments
laya-game-training
lucaskikkawa
A Pygame Snake game uses Laya decisions and feedback to train the model between sessions
System1Othello
PanikParty
Benchmarks System One models, including Laya, on Othello decisions against search engines
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