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

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

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

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

5·GitHub repo

laya-decision-brain

kevinbadi

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

4·GitHub repo

mjbrain

jinlio

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

4·GitHub repo

jev-tests

schacon

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

4·GitHub repo

laya-pong

aovestdipaperino

Demonstrates Laya-driven paddle decisions in a browser Pong game

3·GitHub repo

doomLaya

azalio

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

3·GitHub repo

flappy-laya-openvino-cpu

rupeshs

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

3·GitHub repo
A

laya-blackjack

adambloebaum

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

2·HF model

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

mac-attack

dockndevai

A macOS app uses Laya decisions to direct harmless effects in a camera-based screensaver game

2·GitHub repo

SnakeGame_Laya

Okbatti

Uses a fine-tuned Laya model to choose moves in a Snake game

2·GitHub repo

laya-tetris-finetuning

hama-jp

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

1·GitHub repo

laya-plays-doom

shantanugoel

Trains Laya with reinforcement learning to play Doom through ViZDoom

1·GitHub repo

laya

xosi

Runs Laya typed-decision inference locally on Apple Silicon with MLX

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