Solver script for Glimmer & Gloom written in python
Setup guide currently only includes Windows. If anyone would like to add instructions for MacOS and Linux please let me know.
- Install Python if you do not have it (I used 3.10.5 to make this, I imagine other versions will work but I haven't tried)
- Click on the code dropdown button and click on download zip
- Exract the zip in a folder of your choice and open the folder in explorer
- Click on the address bar and type
cmdand press enter to open the command prompt - Type
pip install -r requirements.txtinto command prompt to install the depencies needed to run the script
For best results, keep your web browser at default zoom level
- Open the folder you extracted the zip to and open the command prompt
- Start a game of Glimmer & Gloom on the very hard difficulty
- Make sure the Glimmer & Gloom game window is not blocked by any other windows (See demonstration clip for an example)
- Type
py solver.pyinto the command prompt, it should give a result similar to this:

If you recieve an error, check the troubleshooting guide below - The '*' correspond to the tiles you need to click on, in this example I would need to click on the 2nd and 3rd tile in the top row
- Solve through the board as usual. However, instead of going off shadow cells go off of light cells instead as the script will always try to solve for shadow winning instead of light
- Upon completing the board, after starting a new game you can press the up arrow key followed by the enter key in the command prompt window to quickly run the script again
- Right click solver.py and click on edit to open it in a text editor
- Near the top of the file you will see a line that says
thresh = 0.65 - To increase the threshold, all you need to do is increase the 0.65, I recommend increasing it by 0.05-0.1 until you do not recieve an error.

- Right click solver.py and click on edit to open it in a text editor
- Near the top of the file you will see a line that says
thresh = 0.65 - To decrease the threshold, all you need to do is decrease the 0.65, I recommend decreasing it by 0.05-0.1 until you do not recieve an error.

As the results of the script can vary between monitors and resolutions a final solution would be to re-make the template images the script uses to find the tiles. I made a very short video guide on how to make your own template images to hopefully improve the accuracy and consistency of the script on your specific setup.
Video Guide Here

