model

package
v0.0.0-...-78e57d9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrawableCellsMap

type DrawableCellsMap = map[coordinate.TetrisModelCoordinate]tcell.Color

type DrawableInfoModel

type DrawableInfoModel interface {
	DrawableCells() DrawableCellsMap
	Lines() int
	GameOver() bool
	PeriodicUpdateDuration() time.Duration
}

type TetrisModel

type TetrisModel interface {
	DrawableInfoModel
	Restart()
	MoveCurrentPieceDown()
	MoveCurrentPieceLeft()
	MoveCurrentPieceRight()
	RotateCurrentPiece()
	DropCurrentPiece()
	PeriodicUpdate()
}

func NewTetrisModel

func NewTetrisModel() TetrisModel

Jump to

Keyboard shortcuts

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