jotto v6.0.4
jotto
Jotto solver.
Example
With a JSON file of previous guesses and their scores:
{
"bread": 1,
"anvil": 2
}Pipe it into jotto to get the best possible next guess:
$ jotto < guesses.json
Imported : 12,478 words
Using : 8,013 words
Possible : 935 words
Best guess : ironeInstallation
For the jotto command-line executable:
$ npm install -g jottoFor programmatic usage:
$ npm install jottoAPI
var jotto = require('jotto');jotto.narrowDownPossibleWords(words, previousGuesses)
Given an Array words of words and an Object previousGuesses like this:
{
'bread': 1,
'anvil': 2
}...wherein each key is a guess and each value is the score (in jots) that the guess received, narrows down the possible solutions to the current puzzle and returns the narrowed-down Array of words.
jotto.bestGuess(words, possibleWords)
Given the Array words that you used for jotto.narrowDownPossibleWords and
the Array possibleWords that was returned, returns the word that would
narrow down the possible words the most (the "best guess").
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
8 years ago
9 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago