News for hackers. Stuff that matters.
Re:Show HN: Brain Frog – Can you be random enough for 11 lin... by emrtnn on Thursday June 25, 2026 @07:16AM (#48671797)
Less fancy hack here, intercept the prediction function on every punch and force the frog to take the opposite side. const realPunch = punch;

punch = function(myMove) {

  oracle.predictNextPunch = function() {
    return myMove === 'L' ? 'R' : 'L'; 
  };
  
  realPunch(myMove);
};
Re:Show HN: Brain Frog – Can you be random enough for 11 lin... by escanor on Friday June 26, 2026 @03:13AM (#48683360)
brilliant!