host

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package host is the program that runs one game: it reads commands on one stream, writes frames on another and paces the engine at its own frame rate. cmd/wittyplay-host wraps it in a process; tests run it directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(in io.Reader, out io.Writer, open Open) error

Run plays until told to quit or until in closes. Cores may keep thread-local state, so it locks a thread for itself.

Types

type Open

type Open func(l ipc.Load, h engine.Handlers) (engine.Engine, error)

Open makes the engine a Load asks for.

Jump to

Keyboard shortcuts

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