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-system1-snake

Kamandlou

A terminal Snake game uses Laya MLX to choose moves from structured game-state features

1·GitHub repo

laya-eval

yliuai

Fine-tunes Laya to play Snake on a Mac and measures base vs fine-tuned decision accuracy

1·GitHub repo

laya-pi

trinacria-tech

Runs Laya decision APIs and demos on a Raspberry Pi 4 using ONNX Runtime or PyTorch

1·GitHub repo

snake-game-laya-ai-example

larchanka

Provides terminal games that use the Laya model for real-time decisions

1·GitHub repo

typed-decision-slay-the-spire

MindrLabs

Compares Convai Laya and Nimble models playing Slay the Spire, including fine-tuned runs

1·GitHub repo

snake

ufuayk

Runs a browser-based Snake game whose moves are selected by the laya-mlx model

1·GitHub repo

laya-agent

clarois

Uses local Laya decisions to choose and execute actions in Ragnarok Offline

1·GitHub repo

vega-laya-chess

harishkotra

Plays and benchmarks chess matches between local Vega and Laya decision models

1·GitHub repo
A

laya-tetris-decisions

aaung

Provides synthetic Tetris decision data for training and evaluating typed-decision models

0·HF dataset
J

ra2-laya-v33-sft

jayzou3773

Supervised fine-tuning data for the Laya model used in a Red Alert 2 demo

0·HF dataset
T

laya-minecraft-training-data

thtesche

Provides Minecraft agent decision logs for fine-tuning Laya

0·HF dataset

laya-doom

shantanugoel

A Doom game experiment uses a frozen Laya encoder and a trained decision head

0·GitHub repo

chakravyuha-oss

kspviswa

A browser maze game uses a locally hosted Laya model to choose each move

0·GitHub repo

anima3

hulryung-uo

Uses a System One decision brain with Qwen log-probabilities and Laya triage for a game client

0·GitHub repo

laya-tetris-finetuning

hama-jp

Fine-tunes Laya for real-time Tetris placement decisions and documents the experiments

0·GitHub repo

Nekomimi-Waifu-Seeker

CooLguNxDD

Uses Laya to guess anime and other fictional characters through typed decisions

0·GitHub repo

laya-blackjack

adambloebaum

Trains and evaluates a Laya-based blackjack policy with a simulator and probability dashboard

0·GitHub repo

laya-mario

gavinHuang

A Mario-style platformer uses Laya-MLX typed decisions to select actions on each game tick

0·GitHub repo

laya-mlx-test

VansonLeung

Experiments with Laya-powered Tetris gameplay and sentence-level grammar screening

0·GitHub repo

laya-plays-Pokemon

masmoriya

A local model agent plays Pokémon using Laya decisions and Qwen vision

0·GitHub repo

laya-car-snake

KarimHFahmy

Uses Laya to choose safe moves in a car-and-trailer grid game

0·GitHub repo

laya-warehouse-safety

senthilr-nv

Simulates warehouse robot decisions using Laya, with a browser replay and deterministic collision-safety layer

0·GitHub repo

jev-arena

Samge0

Compares Jev, NanoJev, and Laya decisions in Tetris and 1024 with recorded gameplay replays

0·GitHub repo

snake-laya

Cognition-Forge

Lets users play Snake against Laya using PyTorch or MLX model runtimes

0·GitHub repo

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