This project is Mad as a Hatter! It's used for Empires and Puzzles game to gather raid data from screenshots.
I have used this data to help reach #1 in the world more than a dozen times in a row, but this doesn't really help you win. At all. Read on.
- I don't believe so. You're simply collecting data on what your top colors are so you can maximize your chances of winning through simple statistics.
- To prove the point, I reached #1 globally several times with the least likely color combinations, meaning the deck was stacked against me the whole way. You still need to know how to play, how to counteract, and you absolutely need good heroes.
git clone https://github.com/MarkBuffalo/hatter.git
cd hatter
pip3 install -r requirements.txt
mkdir shots
- For this to work, you must put all pre-fight raid screenshots in the
/shots/
directory. - Pre-fight means you take a screenshot of the first screen after the raid starts, and before anyone fights. You must not move any tiles.
- You will need to build up thousands of screenshots to get any meaningful data.
An example full-sized anonymous screenshot is placed below:
Example /shots/
directory structure:
$ pwd
/Users/derp/projects/hatter/shots
$ ls -la
-rwxr-xr-x@ 1 mad as a hatter 9868724 Feb 09 22:26 IMG_1255.png
-rwxr-xr-x@ 1 mad as a hatter 9860067 Feb 09 22:26 IMG_1256.png
-rwxr-xr-x@ 1 mad as a hatter 9651928 Feb 09 22:26 IMG_1257.png
-rwxr-xr-x@ 1 mad as a hatter 9724532 Feb 09 22:26 IMG_1258.png
-rwxr-xr-x@ 1 mad as a hatter 9861563 Feb 09 22:26 IMG_1259.png
[...]
Once you have enough screenshots in the /shots/
directory, you can run the python script:
python3 hatter.py
This will give you an output like so:
...which you're free to analyze using your own data science tomfoolery.