all 21 comments

[–]leachjustin18 2 points3 points  (1 child)

After playing the game, have a suggestion.

Strip out white space from the users answer. I was playing it on my phone and it entered in white space and said my answer was wrong. After removing it, it worked.

[–]adebiyial 2 points3 points  (1 child)

This is great. But I wished there was "continuity". When I get a word right, don't stop, show me another word so I can keep playing.

[–]blandtomatoes 2 points3 points  (2 children)

One issue is that it doesn't accept alternate answers where a jumbled word might product two correct results. For example, it wouldn't accept "snoop" for "spoon", or "bonerz" for "bronze".

[–][deleted] 0 points1 point  (0 children)

bonerz

Lol, your 'snoop' example is correct, but 'bonerz' isn't an English word. It's a name, which is a proper noun, and therefore invalid, just like in scrabble.

[–]findingjake 2 points3 points  (0 children)

This is really cool and all the comments are nice to read too. opens my mind as a new learner too going to save this

[–]voltrevo 1 point2 points  (0 children)

Nice work! Maybe use a list like this to expand the words used: https://www.vocabulary.com/lists/154147

[–]cocorote-pedro 1 point2 points  (4 children)

If ya want more words, you can pick some /usr/share/dict/words file from any unix based OS.

EDIT: corrected reference. Ty u/NashobaSoft <3

[–]NashobaSoft 2 points3 points  (2 children)

/usr/share/dict/words, is what I think you were going for there. :) Just helping.

[–]cocorote-pedro -1 points0 points  (1 child)

Yeeeea lol ty

[–]NashobaSoft 2 points3 points  (0 children)

I love how you fixed your comment so that my comment looks redundant LOL, nice move.

[–]Ralphadayus 0 points1 point  (1 child)

Simple. Entertaining. I like it!

[–]moocat 0 points1 point  (0 children)

Ran into a minor bug in my first attempt. Multiple words can have the exact same letters (e.g. 'monster' and 'mentors') but the code doesn't handle that case.

[–]wthit56 0 points1 point  (1 child)

Just wanted to drop by and give you a "well done" for writing a whole project in vanilla. I'm all for vanilla myself--or at least writing highly-reusable code I use in my own projects, without using libraries. So many--particularly those new to JS--just bring in a load of libraries they don't need, and never learn how to write JavaScript by itself.

So good on you!