Comment

Comment by toto007

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;
        }
    });  
});
parent toto007 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton