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.

138 projects

dino-jump

ozbillwang

A browser runner game uses Laya scores to evaluate jump, duck, and run actions

0·GitHub repo

TetrisGame_Laya

RehmanaliMomin

Plays Tetris by using a fine-tuned Laya model to choose piece rotations and drop columns

0·GitHub repo

laya-vs-jev-traffic

ameeetgaikwad

Compares local Laya and cloud Jev in a real-time traffic-control simulation

0·GitHub repo

testes-laya-modelos-jev-like

diegoamrg4123

Tests typed-decision models and includes a Linux Snake demo using Laya

0·GitHub repo

S1-chess

Talles64

Fine-tunes Laya to choose chess moves from legal options in a single forward pass

0·GitHub repo

wizden-moonlander

WizdenOrg

A lunar lander game compares Laya and Jev as typed-decision flight controllers

0·GitHub repo

laya-mario

xujialiang

An experimental controller uses Laya to choose actions in the original Super Mario Bros

0·GitHub repo

Laya_local

RickyFer22

A Pong game and experiment using Laya for real-time decisions alongside physics-based prediction

0·GitHub repo

laya-tetris

nickyqqq

A playable Tetris experiment showing Laya's candidate probabilities and decisions in a live dashboard

0·GitHub repo

laya-playground

dharm1287

Provides a FastAPI playground for Laya survey predictions and a Snake game

0·GitHub repo

TrucoLaya

guillermojmontenegro-hub

Runs an Argentine Truco card game with AI players controlled by Laya

0·GitHub repo

laya-playground

shwetankg07

Three browser games measure Laya’s decisions against exact ground truth

0·GitHub repo

laya-mc-bot

LixiaoLeo123

Minecraft bots use Laya decision models alongside external LLM harnesses

0·GitHub repo

laya-vision-stitch

DanielTea

A local screenshot-based game agent combines Laya, visual features, and action outputs

0·GitHub repo
D

cortico-world-simple-trpg-check

dtmosken

A TRPG skill-check tool scores skill success with Laya or Jev and resolves d100 rolls

0·npm package
E

jev-arena

eliot5566

Lets users create text-driven fighting bots piloted by Jev, Laya, or other models

0·npm package
M

laya-web-demo

mizchi

Runs Laya typed decisions in browser games using ONNX Runtime Web and WebGPU

0·HF Space
L

flutter-laya-tetris

leehack

Lets a Laya decision model play Tetris in real time in the browser

0·HF Space

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