8000 GitHub - mattneary/rabbit-or-wrench: terminal game using word embeddings
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mattneary/rabbit-or-wrench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rabbit or wrench

This is a word game, usually played with a group of people, but recreated on top of word embeddings to be player vs computer.

The way it works is you run python ./app/main.py play and are presented with an interactive session. It should look like this:

$ python ./app/main.py play
>

Once that's open, start playing. The first move is always the same:

$ python ./app/main.py play
> choose rabbit wrench
rabbit

The computer will tell you which of the two words you provide is closer to the secret word (don't worry--it only ever chooses a common noun). From here, you just keep guessing. An example session looks like this:

> choose rabbit wrench
rabbit
> choose rabbit apple
apple
> choose apple pear
pear... you got it!

Setup

To get setup, first make a virtualenv using python3. Then install the requirements and run the game from within the venv.

$ virtualenv venv --python python3
$ source ./venv/bin/active
$ pip install -r requirements.txt
$ python ./app/main.py play

About

terminal game using word embeddings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0