Skip to content

Nurufu/Glimmer-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glimmer-Solver

Solver script for Glimmer & Gloom written in python

Demonstration clip of the solver in use.

Setup Guide

Setup guide currently only includes Windows. If anyone would like to add instructions for MacOS and Linux please let me know.

Windows

  1. 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)
  2. Click on the code dropdown button and click on download zip
  3. Exract the zip in a folder of your choice and open the folder in explorer
  4. Click on the address bar and type cmd and press enter to open the command prompt
  5. Type pip install -r requirements.txt into command prompt to install the depencies needed to run the script

Usage Guide

For best results, keep your web browser at default zoom level

  1. Open the folder you extracted the zip to and open the command prompt
  2. Start a game of Glimmer & Gloom on the very hard difficulty
  3. Make sure the Glimmer & Gloom game window is not blocked by any other windows (See demonstration clip for an example)
  4. Type py solver.py into the command prompt, it should give a result similar to this:
    image
    If you recieve an error, check the troubleshooting guide below
  5. 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
  6. 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
  7. 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

Troubleshooting Guide

Too many tiles detected

image

  1. Right click solver.py and click on edit to open it in a text editor
  2. Near the top of the file you will see a line that says thresh = 0.65
  3. 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. image

Not enough tiles detected

image

  1. Right click solver.py and click on edit to open it in a text editor
  2. Near the top of the file you will see a line that says thresh = 0.65
  3. 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. image

Additional Troubleshooting

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

About

Solver script for Glimmer & Gloom written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages