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-mlx

mizorewww

Runs Laya typed-decision models locally on Apple Silicon using MLX

6.3k·GitHub repo

laya-coreml

mizorewww

Runs Laya typed-decision models locally on Apple Silicon using Core ML and the Neural Engine

1.4k·GitHub repo

quackd

rokbenko

A Python CLI coordinates robots using LLMs, vision-language-action models, and decision models

244·GitHub repo

laya-playground

wdobry

A local website combines Laya model demos, games, a benchmark, and an agent skill

157·GitHub repo

laya-vs-jev

virajbhartiya

A side-by-side T-Rex game compares local Laya and hosted Jev decision models

100·GitHub repo

system1-agents

ThinkFlowLab

Prebuilt agents use Jev, Laya, or Cua-S1 for browser, computer, robotics, and game tasks

64·GitHub repo

laya-vision

r33drichards

Adds calibrated image-and-text decisions to Laya using a compact vision-language backbone

52·GitHub repo

laya-vs-jev-arena

PromptEngineer48

Pits locally run Laya against Jev in Snake and fighting games

29·GitHub repo

llm-honing

HectorHHZ

Trains and evaluates small decision models through game-playing loops and shared decision-server integrations

13·GitHub repo

open-jev-laya

killkli

Runs Laya multilingual ONNX inference in browser-based decision demos

11·GitHub repo

laya-plays-smb3

cv

Demonstrates Laya controlling Super Mario Bros. 3 with recorded, replay-verified decisions

6·GitHub repo
A

laya-blackjack

adambloebaum

Adapts Laya for blackjack action preferences and probability prediction in simulated play

5·HF model

laya-decision-brain

kevinbadi

Provides a web lab for Laya decisions on survey data and a Snake game

5·GitHub repo

jev-tests

schacon

Compares Laya, Jev, Kev, and Claude in three macOS typed-decision demos

5·GitHub repo

laya-plays-google-snake

Makankn

Controls the real Google Snake game using Laya decisions and visual tracking

5·GitHub repo

laya-pong

aovestdipaperino

Demonstrates Laya-driven paddle decisions in a browser Pong game

4·GitHub repo

mjbrain

jinlio

Fine-tunes Laya into a real-time recommendation system for Japanese riichi mahjong

4·GitHub repo

flappy-laya-openvino-cpu

rupeshs

Runs Laya inference with OpenVINO to control a Flappy Bird game on CPU

4·GitHub repo

traffic-solver-laya-

alipyth

Simulates city traffic controlled by Laya and includes a model playground and tutorial

4·GitHub repo

layapet

elisaterumi-ai

A Portuguese virtual pet uses Laya to classify player messages locally on the CPU

4·GitHub repo

doomLaya

azalio

Trains and compares Laya and Jev agents playing FreeDoom with reproducible results

3·GitHub repo

LayaSnakeGame

AmirTahaMim

A Pygame Snake game compares human play, a greedy baseline, and local Laya decisions

2·GitHub repo

laya-snake

zxrneu

Builds an autonomous Snake game agent using Laya decisions and BFS pathfinding

2·GitHub repo

laya-snake-k3

JiongLab

Runs an offline Laya-powered Snake game on SpaceMIT K3 using ONNX and AI Core

2·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