Live data from Hacker News

Guess my word

simbase.org

51–60 of 60 posts

Re: Guess my word

#51

This is great! Inspired me to make a little script in spark-shell: > val words = oxforddict. filter{case s => s.exists(_.isLetter) && s.forall(Character.isUpperCase(_))}. distinct. map((_.toLowerCase,1)) > def lcp(a:String,b:String) = { a.zip(b).takeWhile(Function.tupled(_ == _)).map(_._1).mkString } > implicit val wordOrdering = new Ordering[String] { > override def compare(a:String, b:String) = { val lcpIdx = lcp(a…

This raises an interesting problem--could we find the word even faster by using something other than a standard binary search?

The first thing that comes to mind is skipping past letters that don't appear very often at that point in a word with the current prefix--or to be more granular, you could change your counter (here g) to a float and somehow weight each letter by how rarely it occurs after the letters you've established so far. So if you've currently established that the first four letters are "pro," and "z" almost never occurs after those letters, "z" might be given a weight above 1 so the counter skips right past it.

Re: Guess my word

#52

Earlier quoted context omitted.

Would be nice if it indicated it in some way beyond colour-coding, for the benefit of the colour-blind and those who don't catch on.

Blue-red colorblindness?

blue-black colorblindness at night: https://justgetflux.com/

Re: Guess my word

#54
post #2

I love HN. I got up early in the morning, made a nice breakfast (today? roasted turkey legs seasoned with my own personal italian blend, with a carrot and rutabaga mash, and a glass of whatever white wine was open and in my fridge, wasn't bad for a $7 bottle), had a cup of coffee (fresh ground, brewed using the inverted Aeropress method), cleaned the catbox, fed the cat (even though he probably ate as much as I did o…

Getting past the idea of having wine with breakfast(!) what's in your personal Italian blend?

Diablo's rather generic Italian blend:

  * 3 tablespoons dried basil
  * 3 tablespoons dried oregano
  * 3 tablespoons dried parsley
  * 1 tablespoon garlic powder
  * 1 teaspoon onion powder
  * 1 teaspoon dried thyme
  * 1 teaspoon dried rosemary
  * 1/4 teaspoon fine black pepper
  * 1/4 teaspoon red pepper flakes

Re: Guess my word

#55

Earlier quoted context omitted.

It could be that the wine was used to cook, not drink. Just guessing :)

He said he had a glass, so there's the drinking. Although unusual, it's not the first time I hear of someone drinking a glass of wine at breakfast. It's common in some cultures.

Its something I'm trying out. My culture doesn't really drink wine at all (I'm half German, half Irish, 100% American), but since I eat one good meal a day, I had a glass with it.

Re: Guess my word

#56

when you type in words in alphabetic order, like "Ape, Best, Claim, Dumb", you get to "Rate, Start" and it says after Rate, and before Start. So it must start with R or S.

That isn't a very efficient way to do it. Try doing a binary search. Start with a word that starts with 'M', then if it's before, try one that starts with 'F' or 'G', if it's after, try one that starts with 'S' or 'T'. You eliminate roughly half the possible words with each guess that way, and you'll get to your answer much more quickly than guessing in alphabetical order.

You could improve this method by finding out where the exact midpoint is in the list of words by alphabetical order, as I'm not certain it's actually halfway through the alphabet.

And I'd bet that some people here on HN could come up with even cleverer ways to cut down on guesses.

Re: Guess my word

#57
post #35

It's 2015, make it responsive, please.

Why bother?

Because being a non native English speaker I had to read instructions and had to swipe left and right at least ten times on my phone (and for what? For a game which IMO is nothing new...).

Also being the page just a half dozen of divs making it responsive would have been totally trivial, so why not bother?

Re: Guess my word

#60
post #17

I wanted more :) So here's my blatant clone sourcing words from the internet: https://jsfiddle.net/fsc5v4v0/9/embedded/result/ And here's the code: https://jsfiddle.net/fsc5v4v0/89/ I hope it's bug free. jQuery is really a pain to reason about, so much implicit state all over the place. I thought React might've been a bit too much, but halfway through it I started reconsidering my choice :P

I was also inspired by this and wanted something with a bit more polish I can get my kids excited about:

http://midword.com/

Post reply on HN