Readit News logoReadit News
rammer · a year ago
Looks like this person is fake and got banned on Reddit.

Now trolling here

https://www.reddit.com/r/programming/comments/1enuhw5/commen...

cdrini · a year ago
Oh that's such a shame, it was so fun! I wonder what this person's end game was. The site is down now. Why didn't they just release a game? I'd love to keep playing it!
NavinF · a year ago
Heh, his sockpuppet (/u/puzzledpenguins) deleted the posts where he claimed this was his favorite game. What I find bizarre is that it would be so easy for him to come up with a reasonable explanation and reply to the reddit/hn comments to make skeptics look like assholes. He just deletes any post where people criticize these shenanigans
notfed · a year ago
Huh. OP's only two comments on HN are both in connection with someone named (go figure) puzzledpenguin
amatecha · a year ago
yeh, based on their comment/submission history they're coding with chatgpt and now started claiming it's their grandma learning to code? or something? pretty uncool.
susam · a year ago
Caution: Spoilers in this comment!

Arriving a bit late to the party, but I couldn't resist crafting a quick binary search solution in Python.

  from urllib.request import urlopen, Request
  DICT_URL = "https://grandmasword.com/dictionary.js"
  response = urlopen(Request(DICT_URL, headers={"User-Agent": "Mozilla/5.0"}))
  words = [w.strip('"[];\n') for w in response.read().decode().split("[")[1].split(",")]
  lo, hi, answer = 0, len(words) - 1, ""
  while answer != "d":
      mid = lo + (hi - lo) // 2
      print(words[mid])
      answer = input("after/before/done? [abd] ")
      if answer == "a":
          lo = mid + 1
      elif answer == "b":
          hi = mid - 1
Took a total of 17 guesses to find the solution:

  MALPIGHIAS
  after/before/done? [abd] a
  RUBIFIES
  after/before/done? [abd] a
  TEARERS
  after/before/done? [abd] a
  UNMANLIEST
  after/before/done? [abd] a
  VORTICES
  after/before/done? [abd] b
  UTOPIANIZING
  after/before/done? [abd] a
  VERTICILLASTERS
  after/before/done? [abd] a
  VIROSE
  after/before/done? [abd] a
  VIZARD
  after/before/done? [abd] a
  VOLCANISE
  after/before/done? [abd] a
  VOLUMIZER
  after/before/done? [abd] b
  VOLPINOS
  after/before/done? [abd] b
  VOLITATE
  after/before/done? [abd] b
  VOLCANOLOGICAL
  after/before/done? [abd] b
  VOLCANIZATION
  after/before/done? [abd] a
  VOLCANIZES
  after/before/done? [abd] a
  VOLCANO
  after/before/done? [abd] d
Thanks for sharing this nice game on a fine Sunday evening! It was fun to play both manually as well as programmatically!

yismail · a year ago
let l = 0; let h = dictionary.length - 1;

const textbox = document.querySelector("input");

while (l <= h) { const m = Math.floor((l + h) / 2); const guess = dictionary[m]; const textbox = document.querySelector("input"); console.log("Guessing:", guess);

  textbox.value = guess;
  guessWord();

  if (document.querySelector(".correct")) {
    console.log("Found the word:", guess);
    break;
  } else if (textbox.placeholder.includes("after")) {
    l = m + 1;
  } else {
    h = m - 1;
  }
}

Here's mine in JavaScript, you can paste it in the console.

susam · a year ago
Thanks! I should have realised that a solution for this could be implemented in JavaScript as well, allowing it to run directly in the web browser. Here is my translation of my earlier Python program to JavaScript:

  let lo = 0, hi = dictionary.length - 1
  const answer = document.getElementById('guess')
  while (document.getElementsByClassName('correct').length === 0) {
    const mid = Math.floor(lo + (hi - lo) / 2)
    answer.value = dictionary[mid]
    guessWord()
    if (answer.placeholder.indexOf('after') !== -1) {
      lo = mid + 1
    } else {
      hi = mid - 1
    }
  }
This solution is quite similar to yours. Thanks for this nice idea!

layer8 · a year ago
There is some bug in the sorting, because it sorted “vol” after “volatile” for me. It seems to depend on some previous state, though, because I couldn’t reproduce it in a new window.

Edit: See also https://news.ycombinator.com/item?id=41217457.

TheJoeMan · a year ago
It seems the previous guess is always placed either one up or one down from the entry box. So if you're guessing "V" words, then type "apple", then "apple" will show after "vodka". So the list is not getting re-alphabatized.
matt_morgan · a year ago
Right. My word was before "wizard," and later I guessed "yesterday," which is after wizard. It put yesterday adjacent to the entry box, before wizard. Same is true for words before the word. Basically, if I make bad guesses, it doesn't list them in alpha order.
rossdavidh · a year ago
Grandma's First Bug report
boxed · a year ago
I had a similar issue. Void sorted before Vogue. Breaks the game totally as far as I can tell.
cvarjas · a year ago
It might not be sorted intentionally as part of the challenge of the game.
bbarn · a year ago
I read the domain name as Grandma Sword. Maybe her next project :)
wongogue · a year ago
A refreshing new fantasy RPG.
naltroc · a year ago
the quest for perfect length yarn
ivanjermakov · a year ago
My first entered word was "sword" so I read it same as you
cheschire · a year ago
I read this in Sean Connery’s voice.
codingdave · a year ago
That is cool - it is nice and simple, but fun. The code is clearly from a beginner, but the saved game bit shows that she is a clever beginner - such a pragmatic way to continue a game. I hope she keeps learning and building more.
interludead · a year ago
Fun is the key
ErikAugust · a year ago
Prompt: “You are a 70 year old grandmother learning JavaScript…”
x86a · a year ago
Maybe I've been ruined by the internet, but a grandma didn't write this.
timnetworks · a year ago
It's probably more akin to "my son's first book" being co-authored by both parents and each set of their parents, proofread by sister, and sent to a professional printing house to be sent back on thick glossy paperboard.

I'm just jealous to granma doesn't understand DNS

shepmaster · a year ago
I hope Grandma has some analytics hooked up to see all the traffic coming in!

A small bug report: the "Share score" button on macOS Safari doesn't offer "copy" as an option for some reason. The same functionality on guess the game[0] has the same limitation, but it also copies to the clipboard automatically. Wordle[1] seems to just copy to the clipboard only.

[0]: https://guessthe.game

[1]: https://www.nytimes.com/games/wordle/index.html

Retr0id · a year ago
Grandma is a Cloudflare Analytics user, apparently.