Automatically solves the random and timed puzzle near the end of The Witness (the video game) using the OpenCV computer vision module.
When you are near the end of The Witness and you reach the door with two random and timed puzzles (see image below) this software will automatically calculate the solution. There is currently only support for the puzzle on the left.
This software runs a flask web server in the background on the same PC that is running the video game. Use your phone to connect to the web server:
Press the button to find the solution:
There is also a debug mode that lets you see what elements in the puzzle were found by OpenCV:
- Documentation used for this readme.
- Various screenshots of the puzzle which can be used instead of loading up the actual video game. Make sure the screenshots are shown full-screen.
- HTML pages used by the flask web server.
- Images used with OpenCV to detect the relevant objects in the puzzle.
- Main.py
- Main entry point of the code that starts the web server.
- PuzzleSolver.py
- Logic used to solve the puzzle.
- Vertex.py
- Helper functions.
pip install flask
pip install opencv-python
python .\Main.py
- Add support for more than one puzzle!
- Clean up the code and add more comments to the code