Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Broderick-Westrope/tetrigo
/ types & classes
Types & classes
56 in github.com/Broderick-Westrope/tetrigo
⨍
Functions
276
◇
Types & classes
56
↓ 5 callers
TypeAlias
action
pkg/tetris/action.go:10
↓ 1 callers
TypeAlias
FatalErrorMsg
FatalErrorMsg encloses an error which should be set on the starter model before exiting the program.
internal/tui/messages.go:6
↓ 1 callers
TypeAlias
Mode
internal/tui/mode.go:27
Struct
Action
An Action performed by the user that corresponds to points.
pkg/tetris/action.go:6
Struct
ActionContainer
pkg/tetris/action.go:139
Struct
CLI
cmd/tetrigo/main.go:8
Struct
Config
internal/config/config.go:11
Struct
Coordinate
Coordinate represents a position in the game matrix using X (horizontal) and Y (vertical) coordinates. The origin (0,0) is the top-left of a matrix (w
pkg/tetris/tetrimino.go:39
Struct
Fall
pkg/tetris/fall.go:8
Struct
Game
Game represents a single player game of Tetris. This can be used for Marathon, Sprint, Ultra and other single player modes.
pkg/tetris/modes/single/single.go:14
Struct
GameKeyMap
internal/tui/components/game_keys.go:10
Struct
GameStyles
internal/tui/components/game_styles.go:8
Struct
GlobalVars
cmd/tetrigo/main.go:16
Struct
Input
pkg/tetris/modes/single/single.go:27
Struct
Input
internal/tui/starter/model.go:18
Struct
Keys
internal/config/keys.go:3
Struct
LeaderboardCmd
cmd/tetrigo/subcommands.go:41
Struct
LeaderboardInput
internal/tui/mode.go:75
Struct
LeaderboardModel
internal/tui/views/leaderboard.go:20
Struct
LeaderboardRepository
internal/data/leaderboard.go:19
TypeAlias
Matrix
Matrix represents the board of cells on which the game is played.
pkg/tetris/matrix.go:9
Struct
MenuCmd
cmd/tetrigo/subcommands.go:14
Struct
MenuInput
internal/tui/mode.go:67
Struct
MenuModel
internal/tui/views/menu.go:31
Struct
MockStopwatch
MockStopwatch is an autogenerated mock type for the Stopwatch type
internal/tui/components/mock_Stopwatch.go:13
Struct
MockStopwatch_Elapsed_Call
MockStopwatch_Elapsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elapsed'
internal/tui/components/mock_Stopwatch.go:44
Struct
MockStopwatch_Expecter
internal/tui/components/mock_Stopwatch.go:17
Struct
MockStopwatch_ID_Call
MockStopwatch_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
internal/tui/components/mock_Stopwatch.go:89
Struct
MockStopwatch_Init_Call
MockStopwatch_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
internal/tui/components/mock_Stopwatch.go:136
Struct
MockStopwatch_Reset_Call
MockStopwatch_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
internal/tui/components/mock_Stopwatch.go:183
Struct
MockStopwatch_SetInterval_Call
MockStopwatch_SetInterval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetInterval'
internal/tui/components/mock_Stopwatch.go:215
Struct
MockStopwatch_Stop_Call
MockStopwatch_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
internal/tui/components/mock_Stopwatch.go:263
Struct
MockStopwatch_Toggle_Call
MockStopwatch_Toggle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Toggle'
internal/tui/components/mock_Stopwatch.go:310
Struct
MockStopwatch_Update_Call
MockStopwatch_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
internal/tui/components/mock_Stopwatch.go:369
Struct
MockStopwatch_View_Call
MockStopwatch_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
internal/tui/components/mock_Stopwatch.go:415
Struct
Model
internal/tui/starter/model.go:36
Struct
NextQueue
NextQueue is a collection of up to 14 Tetriminos that are drawn from randomly. The queue is refilled when it has less than 7 Tetriminos.
pkg/tetris/next_queue.go:9
Struct
PlayCmd
cmd/tetrigo/subcommands.go:20
TypeAlias
RotationCompass
RotationCompass defines rotation offset data for all four possible orientations of a Tetrimino (North, East, South, West). This implements the Super R
pkg/tetris/tetrimino.go:46
TypeAlias
RotationOffsets
RotationOffsets contains a sequence of offset coordinates to try when rotating a Tetrimino. When rotating, these offsets are tried in order until a va
pkg/tetris/tetrimino.go:52
Struct
Score
internal/data/leaderboard.go:8
Struct
Scoring
Scoring is a scoring system for Tetris. It keeps track of the current level, total score, and lines cleared. It also has options to increase the level
pkg/tetris/scoring.go:10
Struct
SingleInput
SwitchModeInput values --------------------------------------------------
internal/tui/mode.go:51
Struct
SingleModel
internal/tui/views/single.go:50
Interface
Stopwatch
internal/tui/components/stopwatch.go:10
Interface
SwitchModeInput
internal/tui/mode.go:14
Struct
SwitchModeMsg
internal/tui/mode.go:9
Struct
Tetrimino
A Tetrimino is a geometric Tetris piece formed by connecting four square blocks (Minos) along their edges. Each Tetrimino has a unique shape, position
pkg/tetris/tetrimino.go:15
Struct
Theme
internal/config/theme.go:3
Interface
Timer
internal/tui/components/timer.go:10
Struct
cellCharacters
internal/tui/components/game_styles.go:26
Struct
holdStyles
internal/tui/components/game_styles.go:20
Struct
leaderboardKeyMap
internal/tui/views/leaderboard_keys.go:7
Struct
menuKeyMap
internal/tui/views/menu_keys.go:8
Struct
stopwatchImpl
internal/tui/components/stopwatch.go:22
Struct
timerImpl
internal/tui/components/timer.go:21