Live data from Hacker News

I’m Not a Robot

neal.fun

151–160 of 278 posts

Re: I’m Not a Robot

#154

level 47 cheat ``` // Keep track of already hit notes const hitNotesSet = new WeakSet(); // Define hit zone (adjust based on your game layout) const hitZoneY = window.innerHeight - 150; // ~150px from bottom const tolerance = 20; // allowed error in pixels function hitNotes() { document.querySelectorAll('.note').forEach(note => { if (hitNotesSet.has(note)) return; // already triggered const rect = note.getBoundingCli…

Why? I did it on the first try and have never played games like osu!, there seems to be quite a bit of tolerance for hitting the wrong keys.

Re: I’m Not a Robot

#156
//Level 47: Din Don Dan //F12 > Console > Paste Code

const hitNotesSet = new WeakSet(); const tolerance = 10; // hassasiyet

const arrowMap = { '←': document.querySelector('.arrows-container .arrow-key:nth-child(1)'), '↓': document.querySelector('.arrows-container .arrow-key:nth-child(2)'), '↑': document.querySelector('.arrows-container .arrow-key:nth-child(3)'), '→': document.querySelector('.arrows-container .arrow-key:nth-child(4)') };

const keyMap = { '↑': 'ArrowUp', '↓': 'ArrowDown', '←': 'ArrowLeft', '→': 'ArrowRight' };

function hitNotes() { document.querySelectorAll('.note').forEach(note => { if (hitNotesSet.has(note)) return;

    const arrow = note.innerText.trim();
    const target = arrowMap[arrow];
    if (!target) return;

    const noteRect = note.getBoundingClientRect();
    const targetRect = target.getBoundingClientRect();

    const noteY = noteRect.top + noteRect.height / 2;
    const targetY = targetRect.top + targetRect.height / 2;

    if (Math.abs(noteY - targetY) 
}

setInterval(hitNotes, 10);

Re: I’m Not a Robot

#160
Clever idea, but I find it all tedious (like real CAPTCHAs), and it's not even true-to-form as all of these can be more easily solved by a computer than a human.
Post reply on HN