game

package
v0.0.0-...-984e2b4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

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

Clock provides the timing of the game

func NewClock

func NewClock(callback func()) *Clock

NewClock is a constructor for Clock

type Game

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

Game manages the game state

func NewGame

func NewGame(logger *log.Logger,
	tileRequested chan bool,
	tileLanded chan tile.Tile,
	topReached chan tile.Tile,
	tilePicked chan tile.Tile,
	nextTilePicked chan tile.Tile,
	tileMoved chan rune,
	refreshRequested chan string,
	clockTicked chan int,
	r int) *Game

NewGame is a constructor for Game

func (*Game) Start

func (g *Game) Start()

Start starts the game

Jump to

Keyboard shortcuts

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