game

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	WordList *wordlist.WordList
	// contains filtered or unexported fields
}

func NewGame

func NewGame(wordlist *wordlist.WordList, date time.Time, numGuesses int) *Game

func (*Game) Backspace

func (g *Game) Backspace()

func (*Game) Draw

func (g *Game) Draw(s tcell.Screen)

func (*Game) Enter

func (g *Game) Enter()

func (*Game) IsFinished

func (g *Game) IsFinished() bool

func (*Game) Keypress

func (g *Game) Keypress(x rune)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳