Play a maze game in which semantic distances between words indicate the directions you can safely explore 🤓
Inspired by Semantle & Cohere.
- Install Python requirements:
python -m pip install -r requirements.txt
- Gather the necessary embeddings from Cohere (you'll need a Cohere API key):
python -m sem_maze.data.embed_nounlist API_KEY
(this will take ~2 minutes) - Play the game:
python -m sem_maze.maze
🎉
In the example game above, navigate from woodchuck
to champion
using the arrow keys -- careful, if you try to step to a word that's too "far away" in semantic embedding space, you lose a life! The *asterisks*
around a word indicate your location on the map.
The finished game:
Each game is random, so play multiple times & have fun!