Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuveenE/codenames-ai
/ functions
Functions
50 in github.com/SuveenE/codenames-ai
⨍
Functions
50
◇
Types & classes
10
↓ 13 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 10 callers
Function
delay
(ms: number)
utils/gameUtils.ts:58
↓ 4 callers
Function
generateInitialGameState
(options: GameOptions = {})
utils/gameUtils.ts:4
↓ 4 callers
Function
getStoredApiKey
()
utils/encryption.ts:13
↓ 3 callers
Function
generateCardTypes
()
utils/gameUtils.ts:39
↓ 2 callers
Function
generatePrompt
( role: "CLUE_GIVER" | "GUESSER", gameState: GameState, )
utils/prompts.ts:50
↓ 2 callers
Function
handleStartGame
()
app/page.tsx:68
↓ 2 callers
Function
moveToNextWord
()
components/CustomGameDialog.tsx:56
↓ 2 callers
Function
saveGameToFile
(gameState: GameState)
utils/gameUtils.ts:62
↓ 2 callers
Function
shuffleArray
(array: T[])
utils/gameUtils.ts:49
↓ 1 callers
Function
createOpenAIClient
( role: "CLUE_GIVER" | "GUESSER", sessionId: string, gameState: GameState, apiKey: string, )
app/api/gpt/route.ts:12
↓ 1 callers
Function
createOpenAIClient
( role: "CLUE_GIVER" | "GUESSER", sessionId: string, gameState: GameState, )
app/api/o1/route.ts:10
↓ 1 callers
Function
decryptApiKey
(encryptedKey: string)
utils/encryption.ts:8
↓ 1 callers
Function
deleteApiKey
()
utils/encryption.ts:24
↓ 1 callers
Function
encryptApiKey
(apiKey: string)
utils/encryption.ts:3
↓ 1 callers
Function
getRevealedCardStyle
(type: Card["type"])
components/GameBoard.tsx:39
↓ 1 callers
Function
getSpymasterCardStyle
(type: Card["type"])
components/SpymasterView.tsx:28
↓ 1 callers
Function
getSpymasterCardStyle
(type: Card["type"])
components/GameBoard.tsx:52
↓ 1 callers
Function
getSystemPrompt
(role: "CLUE_GIVER" | "GUESSER")
utils/prompts.ts:3
↓ 1 callers
Function
getSystemPromptO1
(role: "CLUE_GIVER" | "GUESSER")
utils/prompts.ts:21
↓ 1 callers
Function
handleAITurn
()
app/page.tsx:144
↓ 1 callers
Function
handleCardClick
(index: number)
app/page.tsx:316
↓ 1 callers
Function
handleColorClick
(index: number)
components/CustomGameDialog.tsx:40
↓ 1 callers
Function
handleLoadSample
(gameId: number)
components/CustomGameDialog.tsx:32
↓ 1 callers
Function
handleWordInput
(word: string)
components/CustomGameDialog.tsx:48
↓ 1 callers
Function
moveToPreviousWord
()
components/CustomGameDialog.tsx:62
↓ 1 callers
Function
playTurn
()
app/page.tsx:101
↓ 1 callers
Function
storeApiKey
(apiKey: string)
utils/encryption.ts:19
Function
ApiKeyDialog
({ open, onOpenChange, onSubmit, }: ApiKeyDialogProps)
components/ApiKeyDialog.tsx:17
Function
CustomGameDialog
({ open, onOpenChange, onStartCustomGame, }: CustomGameDialogProps)
components/CustomGameDialog.tsx:19
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:56
Function
GameBoard
({ cards, onCardClick, isSpymaster, }: GameBoardProps)
components/GameBoard.tsx:9
Function
GameHistory
({ history, winner }: GameHistoryProps)
components/GameHistory.tsx:13
Function
GitHubLink
()
components/GitHubLink.tsx:1
Function
Home
()
app/page.tsx:24
Function
POST
(request: Request)
app/api/gpt/route.ts:32
Function
POST
(request: Request)
app/api/o1/route.ts:29
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:25
Function
SpymasterView
({ cards }: SpymasterViewProps)
components/SpymasterView.tsx:7
Function
generateSampleGames
(numGames: number = 10)
utils/gameUtils.ts:103
Function
handleApiKeySubmit
()
app/page.tsx:116
Function
handleCustomClick
()
app/page.tsx:135
Function
handleCustomGame
(words: string[], cardTypes: CardType[])
app/page.tsx:51
Function
handleDelete
()
components/ApiKeyDialog.tsx:39
Function
handleDone
()
components/CustomGameDialog.tsx:78
Function
handleKeyDown
(e: KeyboardEvent<HTMLInputElement>)
components/CustomGameDialog.tsx:68
Function
handleStartClick
()
app/page.tsx:126
Function
handleSubmit
()
components/ApiKeyDialog.tsx:33
Function
replayTestGame
()
app/page.tsx:393