flappy

command
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Flappy Bird played by a language model, to put a number on a question: what can a model decide at a reflex game when each step is one scored question? Nothing is trained. The model reads the state as a sentence and answers through Engine.Score, so the answer is a probability and the cost is one prefill per decision; a random flapper and a one-line heuristic play the same game as the floor and the ceiling. Asked yes or no, no model plays; asked which of two numbers is larger, with the numbers as the options, a 1B plays the heuristic's game.

go run ./_example/flappy                    # Qwen2.5-0.5B-Instruct from the cache
go run ./_example/flappy -model ./x.gguf    # another model
go run ./_example/flappy -larger -rows      # the comparison asked as a choice of numbers
go run ./_example/flappy -episodes 5 -show  # print each decision
go run ./_example/flappy -larger -nobase -screen   # watch it in the terminal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL