A bot to help solve the Solitaire mini-game in ShenzhenIO.
- Set your screen resolution in
Program.cs
- Compile und Run
- Run ShenzhenIO's Solitaire Game
- Press Enter and follow the instructions on the screen.
- The bot might 1. take a while 2. not always find a solution
- A good CPU and a good chunk free RAM (~4GB) is recommended.
- Extract the card layout from the game via template matching
- Find all possible moves or moves that make the most sense
- Simulate the moves on the first board and save their resulting card layouts (GameStates) in a list
- Count the left over cards
- Eliminate GameStates, which have too many cards, since they most likely won't result into a quick solution.
- Repeat the process for each GameState from 2 until no more cards are left
- Simulate the moves on screen...
SHENZHENSolitaire
: Main ProgramCardFingerprintGenerator
: Generates embeddable byte arrays, from 16x16 template images, found in the image class of theSHENZHENSolitaire
.Tests
: Some unit tests to make sure components behave