MCPcopy Create free account

hub / github.com/davidcroda/sshwordle / functions

Functions47 in github.com/davidcroda/sshwordle

↓ 3 callersMethodsetGuessColor
(guess *Guess, color guessColor)
src/sshwordle/game.go:249
↓ 2 callersFunctionNewGame
(width int, height int, session ssh.Session, backend Backend)
src/sshwordle/game.go:95
↓ 2 callersMethodapiRequest
https://wordsapiv1.p.mashape.com/words/?letters=6 ** {"success":false,"message":"word not found"} {"word":"test","definitions":[{"definition":"trying
src/sshwordle/backends.go:83
↓ 2 callersMethodcenter
(output string)
src/sshwordle/game.go:386
↓ 2 callersMethodfooterView
()
src/sshwordle/game.go:300
↓ 2 callersFunctionguessToWord
(guess []*Guess)
src/sshwordle/utils.go:75
↓ 2 callersMethodheaderView
()
src/sshwordle/game.go:294
↓ 2 callersFunctionmax
(a, b int)
src/sshwordle/utils.go:60
↓ 1 callersMethodGetRandomWord
(length int)
src/sshwordle/backends.go:15
↓ 1 callersMethodInit
()
src/sshwordle/game.go:172
↓ 1 callersFunctionNewApiBackend
()
src/sshwordle/backends.go:65
↓ 1 callersFunctionNewStaticBackend
()
src/sshwordle/backends.go:40
↓ 1 callersFunctionStartServer
(host string, port int, useApi bool)
src/sshwordle/server.go:21
↓ 1 callersMethodValidateWord
(guess []*Guess)
src/sshwordle/backends.go:16
↓ 1 callersMethodView
()
src/sshwordle/game.go:151
↓ 1 callersMethodcheckLetterIncorrectPosition
(guess *Guess, used map[int]bool)
src/sshwordle/game.go:283
↓ 1 callersFunctiongetGameResults
(db *sql.DB, identifier string)
src/sshwordle/results.go:45
↓ 1 callersMethodgetGameStats
()
src/sshwordle/results.go:76
↓ 1 callersMethodgradeCurrentGuess
()
src/sshwordle/game.go:256
↓ 1 callersMethodhandleBackspace
()
src/sshwordle/game.go:234
↓ 1 callersMethodhandleEnter
()
src/sshwordle/game.go:214
↓ 1 callersMethodhandleKeyPress
(msg tea.KeyMsg)
src/sshwordle/game.go:182
↓ 1 callersMethodhandleLetterPress
(k string)
src/sshwordle/game.go:242
↓ 1 callersFunctionisLetter
(key string)
src/sshwordle/utils.go:67
↓ 1 callersFunctionmakeGuessesSlice
()
src/sshwordle/utils.go:26
↓ 1 callersFunctionmakeIdentifier
(session ssh.Session)
src/sshwordle/utils.go:40
↓ 1 callersFunctionmakeKeyboard
()
src/sshwordle/utils.go:16
↓ 1 callersFunctionmigrateDb
()
main.go:29
↓ 1 callersFunctionopenDb
()
src/sshwordle/results.go:10
↓ 1 callersMethodrenderGameBoard
()
src/sshwordle/game.go:355
↓ 1 callersMethodrenderGrid
()
src/sshwordle/game.go:368
↓ 1 callersFunctionrenderKeyboard
(keyboard map[string]guessColor)
src/sshwordle/utils.go:46
↓ 1 callersMethodrenderPostGame
()
src/sshwordle/game.go:320
↓ 1 callersMethodresizeViewport
(msg tea.WindowSizeMsg)
src/sshwordle/game.go:307
↓ 1 callersFunctionsaveGameResult
(db *sql.DB, identifier string, result *GameResult)
src/sshwordle/results.go:18
↓ 1 callersFunctionsaveGameResults
(db *sql.DB, identifier string, result *GameResult)
src/sshwordle/results.go:32
↓ 1 callersMethodsetAllGuesses
(color guessColor)
src/sshwordle/game.go:176
↓ 1 callersFunctionsshwordleTeaHandler
(useApi bool)
src/sshwordle/server.go:58
FunctionGameComplete
()
src/sshwordle/game.go:164
MethodGetRandomWord
(_ int)
src/sshwordle/backends.go:24
MethodGetRandomWord
(length int)
src/sshwordle/backends.go:110
FunctionInvalidWord
()
src/sshwordle/game.go:168
MethodUpdate
(msg tea.Msg)
src/sshwordle/game.go:117
MethodValidateWord
(guess []*Guess)
src/sshwordle/backends.go:28
MethodValidateWord
(guess []*Guess)
src/sshwordle/backends.go:123
Functionmain
()
main.go:13
FunctionpublicKeyHandler
(_ctx ssh.Context, _key ssh.PublicKey)
src/sshwordle/server.go:54