MCPcopy Create free account

hub / github.com/bstnfrmry/hanabi / functions

Functions244 in github.com/bstnfrmry/hanabi

↓ 29 callersFunctionuseGame
()
src/hooks/game.ts:18
↓ 17 callersFunctionupdateGame
(game: IGameState)
src/lib/firebase.ts:90
↓ 14 callersFunctionuseSelfPlayer
(game: IGameState)
src/hooks/game.ts:41
↓ 12 callersFunctionlogEvent
(category: string, action: string, options = {})
src/lib/analytics.ts:23
↓ 10 callersFunctioncommitAction
(state: IGameState, action: A)
src/lib/actions.ts:147
↓ 8 callersFunctioncard
(color: IColor, number: INumber, size = CardSize.XSMALL, position?: number)
src/pages/learn.tsx:23
↓ 8 callersFunctioncard
(color: IColor, number: INumber)
src/lib/tutorial.tsx:18
↓ 8 callersFunctionisHintAction
(action: IAction)
src/lib/state.ts:270
↓ 8 callersFunctionjoinGame
(state: IGameState, player: IPlayer)
src/lib/actions.ts:339
↓ 8 callersFunctionnewGame
(options: IGameOptions)
src/lib/actions.ts:351
↓ 7 callersFunctiondatabase
()
src/lib/firebase.ts:7
↓ 7 callersFunctiongetColors
(variant: GameVariant)
src/lib/actions.ts:263
↓ 7 callersFunctionisPlayable
(card: ICard, playedCards: ICard[])
src/lib/actions.ts:29
↓ 6 callersFunctionisCardEverPlayable
(card: ICard, state: IGameState)
src/lib/ai.ts:81
↓ 6 callersFunctiononCloseArea
()
src/components/game.tsx:324
↓ 6 callersFunctionuseLocalStorage
(key: string, initialValue: T)
src/hooks/localStorage.ts:4
↓ 6 callersFunctionuseReplay
()
src/hooks/replay.ts:10
↓ 5 callersFunctiongetMaximumPossibleScore
(state: IGameState)
src/lib/actions.ts:316
↓ 5 callersFunctionisCardDangerous
(card: ICard, state: IGameState)
src/lib/ai.ts:65
↓ 5 callersFunctionisDiscardAction
(action: IAction)
src/lib/state.ts:273
↓ 5 callersFunctionisPlayAction
(action: IAction)
src/lib/state.ts:276
↓ 5 callersFunctionliveGame
()
src/components/game.tsx:464
↓ 5 callersFunctionsetStep
(step: number)
src/components/tutorial.tsx:87
↓ 5 callersFunctiontoken
(color: string, size = 1)
src/pages/learn.tsx:46
↓ 5 callersFunctionuseCurrentPlayer
(game: IGameState)
src/hooks/game.ts:33
↓ 5 callersFunctionvignette
(type: IHintType, value: string | number)
src/lib/tutorial.tsx:30
↓ 4 callersFunctionfillEmptyValues
(state: IGameState)
src/lib/state.ts:250
↓ 4 callersFunctionisCriticalCard
(card: ICard, state: IGameState)
src/lib/ai.ts:44
↓ 4 callersFunctionlog
(message: string)
src/components/game.tsx:441
↓ 4 callersFunctionpercentage
(num: number, den: number)
src/components/playerStats.tsx:14
↓ 4 callersFunctionuniqueId
()
src/lib/id.ts:20
↓ 4 callersFunctionuseUserPreferences
()
src/hooks/userPreferences.ts:33
↓ 3 callersFunctionfindComment
( game: IGameState, playerId: undefined | string, turnNumber: number )
src/lib/reviewComments.ts:16
↓ 3 callersFunctiongetScore
(state: IGameState)
src/lib/actions.ts:282
↓ 3 callersFunctionidenticalCardCount
(card: ICard, state: IGameState)
src/lib/ai.ts:51
↓ 3 callersFunctionisCardDiscardable
(card: IHiddenCard, state: IGameState)
src/lib/ai.ts:104
↓ 3 callersFunctiononReaction
(reaction: string)
src/components/game.tsx:344
↓ 3 callersFunctiononSelectArea
(area: ISelectedArea)
src/components/game.tsx:348
↓ 3 callersFunctiononSubmit
()
src/components/textFieldDialog.tsx:28
↓ 3 callersFunctionplay
(state: IGameState)
src/lib/ai.ts:457
↓ 3 callersFunctionreadableUniqueId
()
src/lib/id.ts:6
↓ 3 callersFunctionrebuildGame
(state: Partial<IGameState>)
src/lib/state.ts:210
↓ 3 callersFunctionsetReaction
(game: IGameState, player: IPlayer, reaction: string)
src/lib/firebase.ts:101
↓ 2 callersFunctionemptyHint
(options: IGameOptions)
src/lib/actions.ts:105
↓ 2 callersFunctiongameVariantToText
(gameVariant: GameVariant)
src/pages/[gameId]/summary.tsx:124
↓ 2 callersFunctiongenerateShuffleSeed
()
src/lib/id.ts:24
↓ 2 callersFunctiongetMaximumScore
(state: IGameState)
src/lib/actions.ts:286
↓ 2 callersFunctiongetPlayedCardsPile
(state: IGameState)
src/lib/actions.ts:299
↓ 2 callersFunctionisCardAction
(action: IAction)
src/lib/state.ts:279
↓ 2 callersFunctionisCardHintable
(game: IGameState, hint: IHintAction, card: ICard)
src/components/playerGame.tsx:34
↓ 2 callersFunctionisGameFinished
(game: IGameState)
src/lib/game.ts:3
↓ 2 callersFunctionisGameOver
(state: IGameState)
src/lib/actions.ts:139
↓ 2 callersFunctionisServerSide
()
src/hooks/localStorage.ts:5
↓ 2 callersFunctionisTutorialAction
(game: IGameState, tutAction: IAction, action: IAction)
src/lib/tutorial.tsx:45
↓ 2 callersFunctionloadGame
(gameId: string)
src/lib/firebase.ts:70
↓ 2 callersFunctionmatchColor
(colorA: IColor, colorB: IColor)
src/lib/actions.ts:121
↓ 2 callersFunctionmatchNumber
(game: IGameState, numberA: INumber, numberB: INumber)
src/lib/actions.ts:125
↓ 2 callersFunctiononCommitAction
(action: IAction)
src/components/game.tsx:304
↓ 2 callersFunctiononSelectPlayer
(player, cardIndex)
src/components/game.tsx:359
↓ 2 callersFunctiononSubmit
()
src/components/chatPopover.tsx:28
↓ 2 callersFunctionplaySound
(path: string)
src/lib/sound.ts:1
↓ 2 callersFunctionsetNotification
(game: IGameState, player: IPlayer, notified: boolean)
src/lib/firebase.ts:105
↓ 2 callersFunctionsubscribeToGame
(gameId: string, callback: (game: IGameState) => void)
src/lib/firebase.ts:80
↓ 2 callersFunctionuseColorBlindMode
()
src/hooks/game.ts:10
↓ 2 callersFunctionuseConnectivity
()
src/hooks/connectivity.ts:3
↓ 2 callersFunctionuseLongPress
(callback: () => void, ms = 300)
src/hooks/longPress.ts:3
↓ 2 callersFunctionuseSession
()
src/hooks/session.ts:9
↓ 2 callersFunctionuseTutorialAction
()
src/lib/tutorial.tsx:71
↓ 2 callersFunctionvignette
(type: IHintType, value: string | number)
src/pages/learn.tsx:35
↓ 2 callersFunctionwithSession
(handler)
src/lib/session.ts:4
↓ 1 callersFunctionaddOrReplaceReviewComment
(game: IGameState, newComment: IReviewComment)
src/lib/reviewComments.ts:3
↓ 1 callersFunctionapplyHint
* Side effect function that applies the given hint on a given hand's cards
src/lib/actions.ts:41
↓ 1 callersFunctioncanDiscard
(game: IGameState, card: ICard)
src/lib/ai-cheater.ts:30
↓ 1 callersFunctioncanPlay
(game: IGameState, card: ICard)
src/lib/ai-cheater.ts:6
↓ 1 callersFunctioncanSafelyDiscard
(game: IGameState, card: ICard)
src/lib/ai-cheater.ts:20
↓ 1 callersFunctioncardIdentity
(cardA, cardB)
src/lib/ai-cheater.ts:16
↓ 1 callersFunctioncardToStateColor
(game: IGameState, player: IPlayer, card: ICard)
src/components/gameStats.tsx:23
↓ 1 callersFunctionchangeToNextGame
()
src/components/game.tsx:234
↓ 1 callersFunctioncheat
(game: IGameState)
src/lib/ai-cheater.ts:35
↓ 1 callersFunctionchooseAction
(state: IGameView)
src/lib/ai.ts:296
↓ 1 callersFunctioncleanState
(state: IGameState)
src/lib/state.ts:234
↓ 1 callersFunctiondetermineLastGameEvent
()
src/hooks/sounds.ts:51
↓ 1 callersFunctionfindBestDiscardIndex
* Find the index of the right most unclued card
src/lib/ai.ts:411
↓ 1 callersFunctionfindGivableHint
(hand: ICard[], pIndex: number, state: IGameState)
src/lib/ai.ts:222
↓ 1 callersFunctionformatDuration
(start: number, end: number)
src/pages/[gameId]/summary.tsx:45
↓ 1 callersFunctiongameStateToGameView
(gameState: IGameState)
src/lib/ai.ts:185
↓ 1 callersFunctiongetHintDeductions
(hint: ICardHint, possibleCards: ICard[], game: IGameState)
src/lib/ai.ts:118
↓ 1 callersFunctiongetHintableColors
(state: IGameState)
src/lib/actions.ts:278
↓ 1 callersFunctiongetLastOptimistCardOfPlayer
(state: IGameState, player: number)
src/lib/ai.ts:167
↓ 1 callersFunctiongetLastRollbackableTurn
(game: IGameState)
src/components/rollbackArea.tsx:16
↓ 1 callersFunctiongetPlayerIdFromSession
(req)
src/lib/session.ts:14
↓ 1 callersFunctiongetPossibleCards
(state: IGameState, player: number)
src/lib/ai.ts:140
↓ 1 callersFunctioninitAnalytics
()
src/lib/analytics.ts:8
↓ 1 callersFunctionisCardPossible
* Check whether the current card can be in hand
src/lib/ai.ts:61
↓ 1 callersFunctionisColorHintAction
(action: IHintAction)
src/lib/state.ts:283
↓ 1 callersFunctionisDefaultWrappedSvg
(svg: ImportedSvg)
src/components/ui/svgImage.tsx:13
↓ 1 callersFunctionisLastDiscardableCard
(hand: IHiddenCard[], cardIndex: number, state: IGameState)
src/lib/ai.ts:396
↓ 1 callersFunctionisNumberHintAction
(action: IHintAction)
src/lib/state.ts:286
↓ 1 callersFunctionlistPlayerNames
(players: IPlayer[])
src/components/lobby.tsx:13
↓ 1 callersFunctionloadPublicGames
()
src/lib/firebase.ts:30
next →1–100 of 244, ranked by callers