[HN Gopher] Show HN: Reversle - Find the words given Wordle patt...
       ___________________________________________________________________
        
       Show HN: Reversle - Find the words given Wordle pattern and the
       solution word
        
       Author : kiru_io
       Score  : 77 points
       Date   : 2022-02-17 11:23 UTC (11 hours ago)
        
 (HTM) web link (reversle.net)
 (TXT) w3m dump (reversle.net)
        
       | currycurry16 wrote:
       | Very similar to https://crosswordle.vercel.app/#
        
       | datavirtue wrote:
       | Still don't know what Wordle is...holding out until it passes
       | from everyone else's consciousness. Fun experiment.
        
         | cinntaile wrote:
         | https://www.nytimes.com/games/wordle/index.html
         | 
         | Here you go, now you know.
        
           | datavirtue wrote:
           | Still don't. I'm winning.
        
         | slingnow wrote:
         | You aren't missing much. This is one of those crazes that I
         | don't really understand
        
       | eat_veggies wrote:
       | I made this reversle solver a while back, where you put in the
       | pattern and solution and it gives you the possible words. I used
       | it to draw pictures (like flowers) and write poems.
       | 
       | https://jse.li/wordle-reverse/
       | 
       | Flowers:
       | https://twitter.com/__jesse_li/status/1480341968110690309
       | 
       | Poem: https://twitter.com/__jesse_li/status/1480768147875667971
        
         | kiru_io wrote:
         | This is cool! Thank you for sharing!
        
       | franga2000 wrote:
       | Great idea! Having to fill the rows in order is a bit frustrating
       | since even if you think you know a later line, you don't get to
       | even try it until you get the ones before it. I don't think order
       | matters in theory, does it? (I've only played the original game
       | once so I might be missing something)
        
         | kiru_io wrote:
         | The order does not matter. I will change it, so that you can
         | enter any rows you want.
         | 
         | Thank you for the feedback!
        
       | ksherlock wrote:
       | Are you mining bitcoin in the background? Safari CPU usage hits
       | 100% when it shouldn't be doing anything.
        
         | kiru_io wrote:
         | Thank you for the feedback! There was an issue with the timer
         | component, which cause the whole page to re-render. I fixed the
         | problem, should be online in few minutes.
        
       | emmaelise99 wrote:
       | This is great ! It's definitely not easy but it makes you think a
       | lot !
        
         | kiru_io wrote:
         | Thank you very much!
        
       | avnigo wrote:
       | This is definitely a much harder game for my brain than I thought
       | it'd be. It really does feel like you're solving this with your
       | hands behind your back.
        
         | kiru_io wrote:
         | That was my intention! I found Wordle got a bit simpler and
         | this makes it exciting again!
        
       | accurrent wrote:
       | # Written at an ungodly hour may be bug riddled enjoy
       | 
       | def is_valid(word, conditions, final_guess):
       | """         Checks if it is a valid guess         - word => The
       | word in question         - conditions => The conditions. A string
       | of 5 characters. '-' means a grey cell, 'G' is a green cell and
       | 'y' is a yellow cell.         - final_guess => The final guess.
       | """              if len(word) != 5:             return False
       | for i in range(5):             if conditions[i] == "G":
       | if word[i] != final_guess[i]:                     return False
       | if conditions[i] == "-":                 if word[i] in
       | final_guess:                     return False             if
       | conditions[i] == "y":                 if word[i] not in
       | final_guess[:i] and word[i] not in final_guess[i+1:] or word[i]
       | == final_guess[i]:                     return False
       | return True
       | 
       | ## How to use
       | 
       | with open("/usr/share/dict/words") as f:                   for
       | line in f:             word = line.strip()             ## Replace
       | with appropiate parameters.             if not is_valid(word, "--
       | yy-", "piano"):                 continue             print(word)
        
       | spuz wrote:
       | I had the same idea but thought it could be an addition to the
       | original game. That is, once you have solved today's game, you
       | are given a pattern of yellow and green squares (could be made
       | into a 5x6 image to make it interesting) and you enter new
       | guesses to match the pattern knowing the day's solution.
        
         | kiru_io wrote:
         | Initially I wanted to use the Wordle word (of the day), but
         | then I thought that you would remember the words, so it's not
         | much of a challenge.
        
       | toto007 wrote:
       | It's cool!! If you are as lazy as me, you can add a breakpoint on
       | file 134-4c2dd2397d6f8366.js on function OnEnter and execute this
       | code for find the solution in browser console :P
       | 
       | equalArray = function arraysEqual(a, b) {                 if (a
       | === b) return true;       if (a == null || b == null) return
       | false;       if (a.length !== b.length) return false;
       | for (var i = 0; i < a.length; ++i) {         if (a[i] !== b[i])
       | return false;       }       return true;
       | 
       | }
       | 
       | M.solution.colors.forEach(wordToGuess=>{                   let
       | flag =false;         c.forEach(item=>{             let
       | result=b(item.toUpperCase(),M.solution.word);
       | if(!flag && equalArray(result,wordToGuess)){
       | console.log(item)                 flag=true;             }
       | });
       | 
       | });
        
         | kiru_io wrote:
         | Smart! I am surprised you didn't use the page from eat_veggies.
        
       | layer8 wrote:
       | The third and fourth row of today's game seem totally implausible
       | to me. It would be nice if Reversle would choose realistic Wordle
       | guesses.
        
         | eyelidlessness wrote:
         | It's not how I play, but I know several people who throw random
         | words in to try to tease out hints.
        
           | layer8 wrote:
           | The issue is not that the words are "random", it's that they
           | are exceedingly poorly chosen to tease out more hints.
           | 
           | The third row reuses two letters that were already revealed
           | in the first row to not occur in the solution, and reuses a
           | third letter at the correct position already revealed in the
           | second row, but omitting a another letter whose correct
           | position was also revealed in the second row. That is, it is
           | clear that this can't be the solution word, because of the
           | two letters already known to not occur, and because of
           | omitting one known-position letter. And if it was an attempt
           | to tease out more letters, then the guess doesn't make much
           | sense either because only one of the five letters hadn't been
           | tried yet in the previous rows.
           | 
           | The fourth row again uses a letter already known to not
           | occur, while reusing two letters already known to occur, but
           | one of them at a known-wrong position. (Of course the letter
           | in question could occur twice, but I don't think there's an
           | English word matching "pi_p_".) Furthermore, none of the
           | letters that are new in the fourth row are likely to occur in
           | the solution, given what's already known at that point (in
           | fact I don't think there are any potential solution words
           | where they would fit). So again this is neither an attempt to
           | guess the solution nor a good attempt at teasing out more
           | letters.
        
       | [deleted]
        
       | Graffur wrote:
       | When will the wordle clones subside? This one, like some others,
       | isn't bad but it's not good either.Everyone plays Wordle and it's
       | unlikely any of these clones will take its place.
       | 
       | If you want to make a personal project then cool: go for it. Does
       | it belong on HN though? It's not interesting when it's the 100th
       | clone on the 100th day. But, alas that is what upvotes are for I
       | guess.
        
         | aeone wrote:
         | If we're talking about the same posts - would we call them
         | clones? They seem like different games, with different rules.
         | They may be inspired by the original game in some way, but they
         | seem like creative offerings of their own merit, and it's
         | interesting to see the ways different people's minds go with
         | it. I think I'd personally call a clone a "re-implementation of
         | the same concept".
        
       | elcamino44 wrote:
       | This is awesome. And way harder than expected. Does anyone have
       | any insight into why this particular thought process feels so
       | unnatural?
        
         | kiru_io wrote:
         | Good question. I think it's closer to a crossword puzzle - but
         | differently (since you have more limitation on the letters)
        
       | ykevinator2 wrote:
       | Really nicely done.
        
       | jmpman wrote:
       | Nice. This last weekend, I took the time to teach my son RegEx so
       | he could find potential Wordle solutions. Playing around, trying
       | to find fun starting words, we were looking for words that
       | contained the most number of vowels. Afterwards I realized that
       | our RegEx found just the words with 4 vowels in a row. Now I'm
       | racking my brain to come up with the RegEx to find all 5 letter
       | words with 4 vowels anywhere. It's easy to create 5 different
       | RegEx, each for a different consonant position, but how do you
       | make a single query?
        
       | carnitine wrote:
       | It was perfectly enjoyable but am I the only one who found this
       | much _easier_ than Wordle? Perhaps it's just todays puzzle.
        
         | scrozier wrote:
         | I haven't been able to get a first word yet! And I'm pretty
         | good at Wordle.
        
         | rsfern wrote:
         | It feels easier to me too, but still fun. It seems like there
         | aren't as many constraints as in wordle, so you can solve each
         | line independently
         | 
         | When I first opened the link I thought we would have to guess
         | the exact words, in reverse order. But that seems like it would
         | be difficult
         | 
         | Edit: maybe it's just how I play wordle? I try to minimize
         | reusing burned letters in wordle since they don't add
         | information. There's no penalty in reversle for repeating what
         | would be burned letters so it's easier to template match. It
         | would be interesting to maybe add that constraint to reversle,
         | but then you might have to go back and change earlier lines if
         | you guess wrong
        
           | kiru_io wrote:
           | Actually that could be a nice "Hard mode".
        
             | rsfern wrote:
             | I was thinking about it just now, and I think the hard mode
             | could be similar to hard mode on wordle, where you don't
             | drop any green letters once you get them. That would strike
             | a balance between being a bit challenging but not being
             | impossible without lots of multiline guesses maybe?
             | 
             | Anyway thanks for building reversle, one of the cooler
             | wordle variants IMO!
        
         | jsnell wrote:
         | It does feel quite easy, but it makes sense since there must be
         | a ton of words matching each of the patterns, and they are
         | independent of each other. I wonder if having to match the hard
         | mode Wordle constraints would make it too hard.
         | 
         | (I.e. no placing a letter in a in position where it gives you
         | no new information.)
        
         | manojlds wrote:
         | It's definitely easier, especially if you don't care too much
         | about the time.
        
       ___________________________________________________________________
       (page generated 2022-02-17 23:01 UTC)