Skip to content

Play a maze game where word semantic distances define which directions you can explore 🤓

Notifications You must be signed in to change notification settings

craterink/semantic-maze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semantic-maze

Play a maze game in which semantic distances between words indicate the directions you can safely explore 🤓

Inspired by Semantle & Cohere.

Setup

  1. Install Python requirements: python -m pip install -r requirements.txt
  2. 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)
  3. Play the game: python -m sem_maze.maze 🎉

Gameplay

Gameplay image

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:

Gameplay image -- Finished Game

Each game is random, so play multiple times & have fun!

About

Play a maze game where word semantic distances define which directions you can explore 🤓

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages