Spaces:
Runtime error
Runtime error
| from __future__ import annotations | |
| from typing import Optional | |
| from codenames.embedder import EmbeddingIndex | |
| from codenames.dictionary import load_dictionary | |
| _dictionary = load_dictionary() | |
| _index = EmbeddingIndex(_dictionary) | |
| def guesser(clue: str, board_state: list[str]) -> Optional[str]: | |
| """ | |
| Given a clue word and list of unrevealed board words, | |
| return a word. | |
| """ | |
| return board_state[0] |