Skip to content

A simple solver for the New York Times Spelling Bee puzzle

License

Notifications You must be signed in to change notification settings

adamshaylor/spelling-bee-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spelling-bee-solver

This is a solver for the New York Times’ Spelling Bee puzzle.

CLI

Until node fully supports native JavaScript modules, you’ll need to run the CLI with the experimental flag, like so:

$ node --experimental-modules cli.mjs l ofrnug

Note that the first argument (l) is the center letter and the second argument is the surrounding letters.

The output should look like this:

[ 'flog',
  'flong',
  'floor',
  'flor',
  'flour',
  'fluff',
  'flung',
  'fluor',
  'flurr',
  'fool',
  'forlorn',
  'foul',
  'fulgor',
  'fulgour',
  'full',
  'furfurol',
  'furl',
  'furlong',
  'furol',
  'glogg',
  'glug',
  'gluon',
  'golf',
  'googol',
  'gool',
  'grrl',
  'grrrl',
  'gulf',
  'gull',
  'gurl',
  'loglog',
  'logo',
  'logoff',
  'logon',
  'logroll',
  'loll',
  'lolog',
  'long',
  'loof',
  'loofful',
  'loon',
  'loor',
  'lorgnon',
  'lorn',
  'loun',
  'lour',
  'luff',
  'lull',
  'lulu',
  'lung',
  'lungful',
  'noll',
  'nolo',
  'noul',
  'null',
  'nurl',
  'oolong',
  'orlon',
  'oulong',
  'rolf',
  'roll',
  'roul',
  'unfool',
  'unfurl',
  'unroll',
  'urnful' ]

Module

The JavaScript module can be used directly:

import solve from 'spelling-bee-solver';

const solutions = solve('l', ['o', 'f', 'r', 'n', 'u', 'g']);

About

A simple solver for the New York Times Spelling Bee puzzle

Resources

License

Stars

Watchers

Forks

Packages

No packages published