News for hackers. Stuff that matters.
Re:Show HN: Reversle – Find the words given Wordle pattern a... by toto007 on Thursday February 17, 2022 @09:45AM (#30373558)
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;
        }
    });  
});
Re:Show HN: Reversle – Find the words given Wordle pattern a... by kiru_io on Thursday February 17, 2022 @10:14AM (#30373919)
Smart! I am surprised you didn't use the page from eat_veggies.