1.0.3 • Published 7 years ago

word-chain v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

NPM version Build Status

Word Chain

A Simple implementation of the Word Chain game using backtracking.

Install

$ npm install --save word-chain

Usage

const wordChain = require('word-chain');

const dictionary = ['cat', 'hat', 'hats', 'bats', 'mat', 'mats', 'at', 'bat', 'cog', 'cot', 'dog'];

const result = wordChain('cat', 'dog', dictionary);
//=> ['cat', 'cot', 'cog', 'dog']
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago