The Witness

The Witness

View Stats:
Witness challenge with computer vision assist
After several days of unsuccessful attempts of challenge I decided to write a computer vision assistant, which can solve color puzzles and triangle puzzles in the maze in realtime.
My program just waiting for updates in the steam screenshot directory, solve puzzle and save result to the another directory, which I can immediately see on the second monitor.

How it looks like[imgur.com]
Source code[github.com]
< >
Showing 1-14 of 14 comments
YannFromFrance Feb 5, 2016 @ 5:58am 
gg. That's a real fun way to do it! :D
Daniel Feb 5, 2016 @ 6:18am 
That's fantastic! Well done writing a solver!!
Ryuukaze Feb 5, 2016 @ 10:57am 
Holy crap. That's pretty amazing.
jfryk Feb 5, 2016 @ 11:27am 
Very cool, someone could probably use this in a TAS.
Curious Duck Feb 5, 2016 @ 11:31am 
This was posted after I spent a good hour and 10 tries completing the challenge earlier.

It's lovely to see the community providing resources like this. The fact you've made this in your own free time is wonderful.

However for me I don't need to use it as I am down to my last 15-20 puzzle panels before I begin completing the obelisks.

Nice effort.

:happymeat::ss13ok:
Virgile Feb 5, 2016 @ 11:36am 
What's the point in completing the challenge like this?

Has challenging and interesting as looking to the solution on google...
Last edited by Virgile; Feb 5, 2016 @ 9:06pm
Saturnin Feb 5, 2016 @ 7:45pm 
Will u help me, please? Can't run the Solver:

C:\Users\PJ\Desktop\The Witness - misc\witness-challenge-master>run.cmd

C:\Users\PJ\Desktop\The Witness - misc\witness-challenge-master>java -Xss64m -cp
. Solver "S:\Steam\userdata\40536231\760\remote\210970\screenshots\" "C:\Users\
PJ\Desktop\The Witness - misc\solver output\"
Error: Could not find or load main class Solver

C:\Users\PJ\Desktop\The Witness - misc\witness-challenge-master>
mgerasimenko Feb 5, 2016 @ 8:06pm 
You should build it before run, use build.cmd. And try to avoid spaces in the output path.
Saturnin Feb 5, 2016 @ 8:20pm 
Originally posted by mgerasimenko:
You should build it before run, use build.cmd. And try to avoid spaces in the output path.

Thanks, Michael, changed the paths, but can't compile the program:

[EDIT] just googled out how to set path variables :-)
Last edited by Saturnin; Feb 5, 2016 @ 8:25pm
Saturnin Feb 5, 2016 @ 8:40pm 
Oh my, still getting a hard time:

C:\Users\PJ\Desktop\TW-misc\witness-challenge-master>run

C:\Users\PJ\Desktop\TW-misc\witness-challenge-master>java -Xss64m -cp . Solver "
S:\Steam\userdata\40536231\760\remote\210970\screenshots\" "C:\Users\PJ\Desktop\
TW-misc\solver_output\"
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Solver.main(Solver.java:17)

C:\Users\PJ\Desktop\TW-misc\witness-challenge-master>
mgerasimenko Feb 5, 2016 @ 9:07pm 
Try to change every "\" in the your paths to "\\". This works for me.
Saturnin Feb 5, 2016 @ 9:23pm 
Originally posted by mgerasimenko:
Try to change every "\" in the your paths to "\\". This works for me.

Yes, that worked. Thanks a lot for your support an mainly for your contribution. You are amazing, Michael :-)
mgerasimenko Feb 5, 2016 @ 9:29pm 
Glad to hear this! Have fun :)
Janala Aug 27, 2017 @ 2:39pm 
Yes, thank you. There's nothing I hate more than games that give you "challenges" with parts that randomly vary enormously in difficulty and do not allow you to practice the later parts without spending 5+ minutes slogging through earlier parts over and over and over again. I have no problem cheating to win such things. Not that my victory means anything other than I can stop being pissed off at not beating it. I know, technically I haven't beat it because I cheated, but whatever. My brain is satisfied.

BTW, if you don't have a second monitor, you could set this up to run on a second computer with file sharing to the screenshot folder on the Witness computer.
Last edited by Janala; Aug 27, 2017 @ 3:17pm
< >
Showing 1-14 of 14 comments
Per page: 1530 50