game

package
v0.0.0-...-23e228f Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoard

func NewBoard() *board

Types

type Board

type Board interface {
	Display()
	AddElement()
	TakeInput() bool
	IsOver() bool
	CountScore() (int, int)
}

type Key

type Key int
const (
	UP Key = iota
	DOWN
	LEFT
	RIGHT
	QUIT
	ERROR_KEY
)

func GetKeyStrokes

func GetKeyStrokes() (Key, error)

Jump to

Keyboard shortcuts

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