game

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package game is Gem Rush: collect all gems before the timer runs out. This game accepts NO human input by design: it exists to be played by agents (the built-in Decide pilot, a headless bot, or any MCP client). Every object that matters carries a tag and the HUD is a text object, so the whole game state is observable.

Index

Constants

View Source
const (
	Gems      = 6
	TimeLimit = 30.0
)

Variables

This section is empty.

Functions

func Decide

func Decide(obs engine.Observation) engine.Action

Decide is the built-in pilot: given an observation, chase the nearest gem. It uses only what any external agent gets: tags and positions.

func New

func New() *engine.Game

New builds the game. The caller decides how it runs: Autopilot for a watchable window, Headless plus Step for a bot, MCP for external agents.

Types

This section is empty.

Jump to

Keyboard shortcuts

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