<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 17, 2016 at 1:00 PM, spike <span dir="ltr"><<a href="mailto:spike66@att.net" target="_blank">spike66@att.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p><span style="font-size:11pt;font-family:"Calibri",sans-serif">If the guy who wrote the game were to share the code for how to count the Fs and the Js, I could write the algorithm and probably code it in JavaScript, if that is what he used.</span></p></div></div></blockquote><div><br></div><div>Yeah, he did.  And since it is in JavaScript, all you need to do is go to <a href="http://people.ischool.berkeley.edu/~nick/aaronson-oracle/">http://people.ischool.berkeley.edu/~nick/aaronson-oracle/</a> and View Source (probably accessible by right-clicking if you're on a laptop/desktop browser).  It looks like all the code is in one page; a brief and lazy scan didn't detect any includes or API calls, though I might have missed some (because, again, lazy).<br><br>It's more complex than it needs to be; there are much more streamlined ways to detect when the keyboard presses F or J.  Once you have those interrupts up, you just need to have said interrupts count up, then call the prediction algorithm (which is also in JS) and pipe its output to the page.<br></div></div></div></div>