codenames / my_guesser.py
nathanael-fijalkow's picture
first commiiiiiiiiit
641f13e
Raw
History Blame
415 Bytes
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]