LeoDT / unhang

resolve a hangman game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run

npm install request underscore

node main.js

Introduce

Two method to guess next letter:

  1. from to this wiki get a letter list, if there is no letter right, pop a letter from the list.

  2. if there is at least one letter was right, go to the dict search this word, and count all the letters from matched words, the next letter is the max count one.

So the accuracy could be affected by the dict, bigger dict get better result.

This dict(words), is from /usr/share/dict/words.

About

resolve a hangman game


Languages

Language:JavaScript 100.0%