Documentation ¶
Index ¶
- Constants
- type Board
- type Cell
- type Ranking
- type Tetris
- func (t *Tetris) ApplyGravity()
- func (t *Tetris) Draw(surface interfaces.ISurface)
- func (t *Tetris) Drop()
- func (t *Tetris) GetSize() (int, int)
- func (t *Tetris) Init(w int, h int)
- func (t *Tetris) MoveDown()
- func (t *Tetris) MoveLeft()
- func (t *Tetris) MoveRight()
- func (t *Tetris) RotateLeft()
- func (t *Tetris) RotateRight()
- type Tetromino
Constants ¶
View Source
const (
TetrominoWidth, TetrominoHeight = 4, 4
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ranking ¶
type Ranking struct {
// contains filtered or unexported fields
}
func NewRanking ¶
func NewRanking() *Ranking
type Tetris ¶
type Tetris struct {
// contains filtered or unexported fields
}
func (*Tetris) ApplyGravity ¶
func (t *Tetris) ApplyGravity()
func (*Tetris) Draw ¶
func (t *Tetris) Draw(surface interfaces.ISurface)
func (*Tetris) RotateLeft ¶
func (t *Tetris) RotateLeft()
func (*Tetris) RotateRight ¶
func (t *Tetris) RotateRight()
Click to show internal directories.
Click to hide internal directories.