Documentation ¶
Overview ¶
Package game provides a simple Tetris implementation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game interface { Score() int Step(Action) *StepResult DoAction(Action) Board() *Board }
Game interface for the tetris game
type StepResult ¶
type StepResult struct { GameOver bool Action Action Board *Board Collided bool CompletedLinesStep int CompletedLinesTotal int Score int }
StepResult result of performing a step in the game
Click to show internal directories.
Click to hide internal directories.