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

0·GitHub repo

impulse

roby-avo

Creates a physics arena to play against decision models and inspect their choices

0·GitHub repo

LayaGamer

psurge1

Provides harnesses and a web dashboard for playing games with Laya decision agents

0·GitHub repo

layaUI-HK

whksoup

Runs a local Laya playground, games, benchmark, and agent skill

0·GitHub repo

jev-spaceshooter-demo-laya

jstdlee

Steers a retro space shooter with Laya decision models through a local API

0·GitHub repo

laya-decision-lab

clearflow-automation

Presents recorded Laya Snake decision runs and research findings in a static browser replay

0·GitHub repo

laya-plays-mtg

FabioCeleste

A Magic: The Gathering Arena draft companion uses fine-tuned Laya models for picks and deckbuilding

0·GitHub repo

elevator-decision-arena

CircleCI-Research

Benchmarks Jev, Laya, and classic algorithms for simulated elevator dispatch decisions

0·GitHub repo

chess-war

jhonsu01

A pixel-art chess match pits local Laya against Jev using identical typed questions

0·GitHub repo

RayCodes_Mica_4B

47thtechcorner

Compares Mica and Laya decision models in a real-time Pac-Man evasion game

0·GitHub repo
D

laya-snake

deepondas

Runs the Laya decision model as it plays Snake in a live 3D game

0·HF Space

swarm-laya

Aditharavind

Fine-tunes Laya for per-robot decisions in a simulated swarm robotics environment

0·GitHub repo

test-laya

tom-scott-dev

Runs a 2D town game where NPC behavior is driven by local Laya decisions

0·GitHub repo

laya-plays-porklike

AlexandroBG

Uses Laya decisions to guide an observed-only agent through the Porklike roguelike

0·GitHub repo

Jev_vs_Laya_decision_games

minanayernia

Game-theory experiments compare Jev and Laya across six games with analysis and a browser app

0·GitHub repo

citypulse

rohandesilvaa

An offline emergency dispatch game that uses Laya to triage calls

0·GitHub repo

llama-whisperer

leehack

A 3D puzzle game where Laya interprets plain-language orders through llamadart

0·GitHub repo
S

Simul

Demo

A civilisation simulator where people and governments decide with Laya in the browser

0·Demo

jev-touhou

NatBrian

Uses local Laya and Mica decision models to control the Taisei game in real time

0·GitHub repo

LayaGameSuggest

SukandVM

Uses Laya to classify game specifications and Ollama to explain recommendations

0·GitHub repo

laya-experiments

row-huh

Snake game with a Laya autopilot that falls back to a safe move

0·GitHub repo

laya-tetris

Hiohk

A browser-based Tetris game uses Laya to choose and explain piece placements

0·GitHub repo

tetris_laya_llm

TinlerLin

Runs a Tetris game with optional local Laya decision review alongside LLM and heuristic strategies

0·GitHub repo

laya-snake-benchmark

IYIcode

Benchmarks Laya on Snake gameplay with recorded results and browser-based reruns

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