game

package
v0.0.0-...-c477cf1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMatch

func NewMatch(lineup []Player) (int, error)

func Score

func Score(scorer int, matchid int, auto bool) error

Types

type Player

type Player struct {
	ID       int    `json:"id"`
	Team     string `json:"team"`
	Position string `json:"position"`
}

type Result

type Result struct {
	Red    int
	Blue   int
	Winner string
}

func EndMatch

func EndMatch(matchid int) (Result, error)

Jump to

Keyboard shortcuts

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