random

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package random implements the simplest legal Gismo player: every impulse, each own tank picks a random legal heading/speed step and, if an enemy is visible, sometimes fires at one. It exists to give competitors (and the conformance harness) a deterministic, always-legal opponent that isn't just holding still — not to play well.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

Strategy is agent.Strategy's random reference implementation.

func New

func New(seed uint64) *Strategy

New returns a random Strategy seeded deterministically from seed: the same seed always produces the same sequence of orders, which is what keeps this agent reproducible for the conformance harness and for CI.

func (*Strategy) Decide

func (s *Strategy) Decide(view mcpsdk.StateView) []mcpsdk.TankOrder

Decide implements agent.Strategy.

Directories

Path Synopsis
Command random runs the gismo-agent-go random reference agent: an MCP server that plays every own tank with a random legal order each impulse.
Command random runs the gismo-agent-go random reference agent: an MCP server that plays every own tank with a random legal order each impulse.

Jump to

Keyboard shortcuts

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