Write in Python 3.6. Only test on Windows 8.1, Python 3.6.5, in Pycharm.
Use MCTS for the game solution. Some bugs can be ignored, since the script can still continue to play a new game when a situation happens.
- Install Python 3.6.5, and Pycharm is suggested. Use
pip install requirements.txt
to install related packages. Usevirtualenv
if you need. - Open the card game in EXAPunks.
- Run
play.py
and switch back to the game. The script will start to work in 3 seconds.
The script will work like this:
- Click
new game
, and wait for 8 seconds (If you want to stop the script, here is your chance). - Analyze the game table by
opencv
. Then calculate the solution by MCTS. If it can not find the solution in 2000 searches, it will start a new game. - Perform actions automatically. Sometimes it will be buggy due to fast interactions with the game.
By default, it will play for 10 games.