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
Click to show internal directories.
Click to hide internal directories.