An intelligent agent playing Codenames as both Spymaster and Spy
Explore the docs »
View Source
·
View main.py
·
Request Feature or Report Bug
CodeNamesIA is a project aimed at mimicking human-like gameplay in Codenames. The agent plays as both the Spymaster and the Spy. While optimal play is straightforward (mapping each combination to a word), CodeNamesIA employs a more human-like approach.
The agent uses the GloVe (Global Vectors for Word Representation) model to convert words into 300-dimensional vectors. It then selects words that are most likely to give the highest score based on these vectors. As the Spy also uses the same GloVe model, it rarely makes mistakes, making it challenging but not impossible to win against the agent.
CodeNamesIA includes the following features:
- GloVe word embeddings to convert words into 300-dimensional vectors
- Intelligent hint generation by the Spymaster
- Accurate word selection by the Spy based on hints
- High-level human-like play strategy