HNHacker News
TopNewBestAskShowJobs

mattlock

69 karma · joined August 3, 2015

submissionscomments
mattlock··on Ask HN: Have you created programs for only your personal use?
I wrote this program for doing my vertigo exercises.

ruby -e '5.times {%w(left center right center).each{`say #{_1}`;sleep 30}};`say exercise over`'

mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
Yeah, you can think of it as a percentage. The min is 1 and the max is 99. It could be 100, but I don't trust my mostly untested side project that much, so I cut it off at 99 :)

The base confidence score is determined based on how many words a guess technically could be, that's here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac...

Then, I sort of just willy nilly add/subtract from that based on the "intrinsic" score of the word which is computed here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac... and then the "contextualized" score AKA how well it works with other words, which is computed here - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac...

mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
I thought about using lists like that, but it felt a little too much like cheating. My attempt at something like this is, if the word is one of your first two guesses, I reward it for having more common letters. And actually penalize common letter "misses" in later lines. I'm sure it's not 100% optimal, but I saw some improvement on my admittedly very limited set of test data. Here's the relevant code - https://github.com/mattruzicka/wordle_decoder/blob/0bfd7eaac...
mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
Ha, I built a crosswordle solver and didn't even know it!
mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
I honestly thought I removed those comments lol. They might be a little outdated, but yeah, I spent a lot of time thinking about what kinds of information I could glean. There's definitely some bias in there towards a certain kind of strategy/play.

I like your project, very creative!

mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
Ah, that "_1" numbered parameter syntax was added in Ruby 2.7

I actually hadn't used that syntax before this project, was interested in trying it out. I'll document that it only works with 2.7 or later.

mattlock··on Show HN: I built a Wordle decoder that guesses your guesses
Ha, it ended up taking a bit more time than I thought it would, but once I started I couldn't stop.
mattlock··on Ask HN: Who is hiring? (August 2015)
Tunespeak - https://www.tunespeak.com/ - St. Louis, MO

Tunespeak is a loyalty platform for musicians that enables them to identify and reward their most passionate fans. We currently run merit-based contests and sweepstakes for some of the biggest artists in the world across all genres.

Front-End Web Developer - Ember.js, Javascript, HTML5, CSS3 https://www.tunespeak.com/jobs/front-end-web-developer

Backend Developer - Rails, Ruby, MongoDB, Elasticsearch, Redis https://www.tunespeak.com/jobs/server-developer