Skip to content

Find out what the longest seven letter word is on a 7 segment display

Notifications You must be signed in to change notification settings

midnite81/longest-word-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Longest Seven-segment display word

Taking on the challenge from Tom Scott, this code library sets out to determine what the longest word you can write with a seven segment display.

Take a look at his Youtube Challenge Video. He disallows the following characters: gkmqvwxz. We too will exclude those characters.

To view my tutorial on how I created this codebase please watch it on Youtube.

Useful links

Node

Since Tom used NodeJs, we will do so too. However, because I like typescript because it keeps a flakey programming language a bit stricter we'll use it to prevent errors. Since this is a just a 'for fun' coding challenge, I'm not going to be doing any tests in this project.

Taking it to the next level.

While it's good to get the longest acceptable word, I like to know what words were possible. As such we will be creating an array with all the acceptable words. And then we will create a server and output the word to a web page.

Install

First clone the package

git clone [email protected]:midnite81/longest-word-challenge.git

Then run

yarn
yarn run build:live

alternatively if you don't want to rely on nodemon then you can compile the script first and run with node directly.

yarn
yarn run go

About

Find out what the longest seven letter word is on a 7 segment display

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published