Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnite81/longest-word-challenge
Find out what the longest seven letter word is on a 7 segment display
https://github.com/midnite81/longest-word-challenge
Last synced: 15 days ago
JSON representation
Find out what the longest seven letter word is on a 7 segment display
- Host: GitHub
- URL: https://github.com/midnite81/longest-word-challenge
- Owner: midnite81
- Created: 2019-10-05T17:58:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T22:59:26.000Z (over 1 year ago)
- Last Synced: 2023-05-07T00:07:56.688Z (over 1 year ago)
- Language: JavaScript
- Size: 1.38 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Longest Seven-segment display word
Taking on the challenge from [Tom Scott](https://twitter.com/tomscott), 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](https://www.youtube.com/watch?v=zp4BMR88260). 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](https://www.youtube.com/watch?v=bIjTRgdvIew) on Youtube.
# Useful links
- Public domain list of English words: https://github.com/dwyl/english-words
- NodeJs: https://nodejs.org/
- Typescript: http://www.typescriptlang.org/
- Seven Segment Font: https://www.dafont.com/seven-segment.font# 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
```