boards

package
v0.1.126 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package boards holds the rules for the boards a mod declares in its manifest: which declarations a build may carry, and which partition values a score may name. A host that serves the scores service checks reports with the same rules.

Index

Constants

View Source
const MaxTeamSize = 4

MaxTeamSize is the most players a team board's team holds.

Variables

This section is empty.

Functions

func Find

func Find(manifest *wasm.Manifest, name string) *scorespb.Board

Find returns the board named name that manifest declares, or nil.

func Partitioned

func Partitioned(board *scorespb.Board, values map[string]string) error

Partitioned checks that values names one accepted value for each of board's partitions and nothing else.

func Teamed

func Teamed(board *scorespb.Board, player int32, teammates []int32) error

Teamed checks that a score or read on board names its teammates as the board's team takes them: the team size less one on a team board, each a different player and none the scoring player, and none on a board of single players. player is the scoring or reading player's slot, and teammates are the slots of the players the call names.

func Validate

func Validate(manifest *wasm.Manifest) error

Validate checks the boards manifest declares.

func Windows

func Windows(board *scorespb.Board) []scorespb.Window

Windows returns the windows board keeps standings for: its declared windows, or all time alone when it declares none.

Types

This section is empty.

Jump to

Keyboard shortcuts

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