api

package
v0.0.0-...-aeaa2dc Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type Event

type Event struct {
	event.Event
	// contains filtered or unexported fields
}

type Game

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

Game represents a game lobby.

Every game event is handled by it.

func NewGame

func NewGame(c *Client, deck cah.Deck) *Game

func (*Game) Run

func (g *Game) Run()

run starts the lobby, registering players until the start message is received.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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