Let’s Solve Countdown!

Yesterday I went outside. I found the Two Tunnels path. It was a rather nice day.

IMG_5486 IMG_5474

But enough of that. Today I solved Countdown using Node.

IMG_20150419_215746

Give my program any anagram and in true Countdown fashion it will find the longest words you can get within about a second. I’ve basically made a computerised version of Susie Dent. It’s just not as… human.

tnetennba

Every time you give it an anagram, it goes through each word in the word list and checks if it fits into the anagram. It then sorts the matches by length and outputs the longest ones. Simple enough!

Repo

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s