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

lagos-monopoly

vunderkind

Runs two local Laya agents through a Lagos-themed Monopoly game and creates animated replays

0·GitHub repo

laya-plane-battle

wjw1-Evan

A browser-based plane battle game uses a local Laya model to make real-time gameplay decisions

0·GitHub repo

jev-vs-laya-dino

RodolfoBonis

A Chrome Dino game demo compares Jev and Laya on gameplay, latency, cost, and performance

0·GitHub repo

local-ai-tetris

jaredjlg2

Runs local Tetris games with Laya and other AI models making inspectable decisions

0·GitHub repo

chess-system-one

aalekhpatel07

A chess frontend lets users play against decision models including Laya

0·GitHub repo

doomgemma

dexmac221

Compares Laya with fine-tuned Gemma models in FreeDoom accuracy, calibration, latency, and gameplay tests

0·GitHub repo
T

laya-vision-microduck-kick-demo

thaitea

Demonstrates a Laya vision model controlling a simulated duck robot to find and kick a ball

0·HF Space

laya_vision-vs-SF2

beefkknd

Fine-tunes a Laya vision model to choose moves in Street Fighter II

0·GitHub repo

Miya

snowman6-git

Korean-first Minecraft agent driven by a fine-tuned Laya decision model

0·GitHub repo

Chess_JEV_vs_Laya

GauravAtavale

Provides a chess game featuring matches between Jev and Laya

0·GitHub repo

layapilot

sanjeevranjaniitb

Simulates autonomous driving with Laya making real-time typed decisions

0·GitHub repo

doom_laya

Rktim

Uses Laya to choose actions for a Doom marine in a ViZDoom experiment

0·GitHub repo

laya-lab

BramBouma

Offers two playable local simulations featuring real Laya decisions, rules baselines, and replay

0·GitHub repo

laya-ludo

mnk786

A browser-based four-player Ludo game uses Laya and Jev to choose legal moves

0·GitHub repo

laya_pong

luceinrock

A Pong game uses Laya to refine server-side AI paddle moves

0·GitHub repo

neo-vs-morpheus

hakkisagdic

An Ultima Online duel bot driven by local Laya or cloud Jev decision models

0·GitHub repo

laya-android

edwardmonteiro

An Android space dogfight uses Laya’s typed decisions to control an enemy fighter

0·GitHub repo

laya-mlx-mirror-227

Shijiuwei

Runs Laya inference locally on Apple Silicon using MLX, with a terminal Snake demo

0·GitHub repo

jev-hearthstone

ChienIKao

Automates Hearthstone play using local Laya decisions and Android emulator controls

0·GitHub repo

laya-ai

iSabbir

Combines the Laya decision engine with support-triage tools and AI-guided browser games

0·GitHub repo

laya-chess

Srimanvarma001

A local chess app compares Laya-suggested moves with a one-ply material check

0·GitHub repo

laya-mario

darpan-97

Fine-tunes Laya to play Super Mario Land and provides replayable level runs

0·GitHub repo

laya_demo_test

j75689

A Snake demo compares Python and Rust Laya runners with ONNX Runtime and Core ML backends

0·GitHub repo

laya-f1-finetune

huzaifashuja

Fine-tunes Laya to compare Formula 1 engines and cars

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