gameimpl

package
v0.0.0-...-1422131 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameImpl

type GameImpl struct {
	Round *round.Round
	// contains filtered or unexported fields
}

func NewGame

func NewGame() *GameImpl

func (*GameImpl) AnswerChosen

func (g *GameImpl) AnswerChosen(player, choice string) bool

Returns if all the players have already chosen and answer.

func (*GameImpl) NewAnswer

func (g *GameImpl) NewAnswer(player, answer string) bool

Returns if all the answers were already collected.

func (*GameImpl) NewRound

func (g *GameImpl) NewRound(player string, clear bool) bool

Returns if the round is ready to start.

func (*GameImpl) NextQuote

func (g *GameImpl) NextQuote()

func (*GameImpl) NumPlayers

func (g *GameImpl) NumPlayers() int

func (*GameImpl) Points

func (g *GameImpl) Points() []RankedPlayer

func (*GameImpl) Quote

func (g *GameImpl) Quote() game.Quote

type RankedPlayer

type RankedPlayer struct {
	Player string
	Points int
}

Jump to

Keyboard shortcuts

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