Live data from Hacker News

Show HN: My 70 year old grandma is learning to code and made a word game

grandmasword.com

31–40 of 160 posts

Re: Show HN: My 70 year old grandma is learning to code and made a word game

#31
In the spirit of helping a fellow programmer debug some things:

If you guess a word that isn’t in the dictionary, the text box looks like it’s cleared but my phone’s (iPhone) keyboard’s autocomplete either didn’t pick that up or there’s still some hidden content in the box.

It would be nice if the list was always sorted in totality.

Re: Show HN: My 70 year old grandma is learning to code and made a word game

#32
post #24

[flagged]

spoiler warning! don't look at the source if you're going to play the game because the number of possible valid words is short

I see 279496 valid words in dictionary.js

…ooooh I see the 20 secretWords now

Re: Show HN: My 70 year old grandma is learning to code and made a word game

#33

Cool! 10 guesses got me there. Thought it was gonna be impossible.

Took me 13 guesses but it is a great game for a few reasons:

- It can work for multiple age ranges by varying word lengths - It has good replay-ability - It can be adapted for offline play - It can be adapted for learners of new languages as well

Re: Show HN: My 70 year old grandma is learning to code and made a word game

#36
post #21

time to LLM a binary search import requests url = 'https://grandmasword.com/dictionary.js' response = requests.get(url) lines = response.text.split('\n')[2:] exec('\n'.join(lines)) def binary_search(dictionary): while len(dictionary) > 1: mid_index = len(dictionary) // 2 mid_word = dictionary[mid_index] print(f"Guess this middle word: {mid_word}") user_input = input("Did grandma say her word is before or after? (type…

I mean that's literally how to play this game whether you intend to or not
Post reply on HN