Skip to content

roryokane/ghost-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost Assistant

A program that can perfectly play the word game GHOST.

Sample run:

$ bundle exec ruby lib/ghost_assistant.rb
GHOST word game assistant
How many people are playing? (default 2)
2
What letters have been said so far?
lo
935 words start with “lo”; random 10:
loam
loamed
loamier
loamiest
loaming
loamless
loams
loamy
loan
loanable
302 suitable words found; random 10:
locoweed
loculate
locule
loculi
locums
locust
locustae
locustal
locution
locutories
Suggested letter to say: L (forming “lol”), with score 1
A word starting with “lol”: loll

Status

Project Status: Inactive – The project has reached a stable, usable state but is actively developed only infrequently; support/maintenance will be provided as time allows.

This program doesn’t actually play perfectly yet – I know that its heuristics can be improved. But it’s still good enough to have beaten every human I have ever tried it against.

Installation

Prerequisites:

  • Ruby
  • Bundler (gem install bundler)

Installation:

  1. download this program, for instance with git clone https://github.com/roryokane/ghost-assistant.git
  2. bundle install

About

A program that can perfectly play the word game GHOST.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages