Live data from Hacker News

I wrote a script that wins the majority of HQ Trivia games

hackernoon.com

1–10 of 54 posts

Re: I wrote a script that wins the majority of HQ Trivia games

#3
> Although seemingly insignificant, the right-side UI is actually harder for the Tesseract OCR Engine to parse, since the colors are less distinct.

shrug, all the while making it harder for humans to see, too. All of these suggestions move the goal posts a bit and set things up for a cat-and-mouse game.

I applaud Cognetta's effort but sadly I think we are heading for a future where artificially intelligent agents will ruin fun things like this.

Re: I wrote a script that wins the majority of HQ Trivia games

#4
It is important to note that trying to hide from OCR systems is not the right approach here. The text displayed in the game is coming from the network, and I highly doubt it's hard to MiTM from your own device.

The other mitigations are more reasonable.

Re: I wrote a script that wins the majority of HQ Trivia games

#5
post #3

> Although seemingly insignificant, the right-side UI is actually harder for the Tesseract OCR Engine to parse, since the colors are less distinct. shrug , all the while making it harder for humans to see, too. All of these suggestions move the goal posts a bit and set things up for a cat-and-mouse game. I applaud Cognetta's effort but sadly I think we are heading for a future where artificially intelligent agents wi…

My approach (see below) cropped the screenshot before running OCR to remove mistranslations.

Re: I wrote a script that wins the majority of HQ Trivia games

#6
He really didn't show how it performs or the actual solution running on a screen. The time you have to answer the question is very short and his solution has to work against 1) Latency of OCR 2) Latency of the Google Query 3) Latency of parsing the result 4) Latency of running the three methods 5) Input of the Answer (which needs to be performed by a human reading reading the output from the computer screen).

Can someone confirm if it's possible to do all these in Python in l second or less?

Re: I wrote a script that wins the majority of HQ Trivia games

#7

He really didn't show how it performs or the actual solution running on a screen. The time you have to answer the question is very short and his solution has to work against 1) Latency of OCR 2) Latency of the Google Query 3) Latency of parsing the result 4) Latency of running the three methods 5) Input of the Answer (which needs to be performed by a human reading reading the output from the computer screen). Can som…

I'm the guy who wrote the article. I can confirm this all works well under 10 seconds, so you can read the results and click the answer.

Re: I wrote a script that wins the majority of HQ Trivia games

#8
post #5
post #3

> Although seemingly insignificant, the right-side UI is actually harder for the Tesseract OCR Engine to parse, since the colors are less distinct. shrug , all the while making it harder for humans to see, too. All of these suggestions move the goal posts a bit and set things up for a cat-and-mouse game. I applaud Cognetta's effort but sadly I think we are heading for a future where artificially intelligent agents wi…

My approach (see below) cropped the screenshot before running OCR to remove mistranslations.

Hey, Cognetta here :).

I also cropped the screenshot before running OCR, but I can still imagine HQ changing its UI frequently to thwart OCR attempts.

Re: I wrote a script that wins the majority of HQ Trivia games

#9
post #2

Was wondering when I'd see a post like this... https://github.com/nbclark/hqcheat/ Interestingly, we seemed to end up with all 3 of the same approaches. Was fun while it lasted

This is the guy who wrote the post!

Wow, so funny we had the same approaches.

Re: I wrote a script that wins the majority of HQ Trivia games

#10
post #8
post #5

Earlier quoted context omitted.

My approach (see below) cropped the screenshot before running OCR to remove mistranslations.

Hey, Cognetta here :). I also cropped the screenshot before running OCR, but I can still imagine HQ changing its UI frequently to thwart OCR attempts.

Yeah that'd be a simple change for them. I'm happy to know I wasn't alone in this. I knew for sure someone else must be doing the same thing :) How are you taking the screenshots? I made a little hotkey script, but feel I could be a bit quicker on it.
Post reply on HN