Automate playing Monopoly Go! using Python and Bluestacks.
demonstration.mp4
The start.ps1
script will launch the python script with administrative privileges for you. It needs escalated privileges for these reasons:
- Bluestacks is a virtual machine where standard mouseclick emulation via
pyautogui
does not work. Instead this script uses raw Win32 calls viapydirectinput
. - A global key listener is setup to toggle the script on and off - this is a requirement with a low polling delay because the script takes control of the mouse.
-
Install the Bluestacks Android emulator.
-
Login with Google.
-
Install Monopoly Go! from the app store.
-
Login
4.1. If coming from iOS, go to settings on the game on your iOS device and connect your account to your Facebook. Use facebook to login on Bluestacks.
-
Ensure normal app functionality works.
-
Clone this repository, or download the zip.
-
Install python and pip.
-
Install the requirements
pip install -r requirements.txt
. -
Launch
start.ps1
using PowerShell. -
Use F2 to toggle the script - it starts disabled.
-
Make sure the BlueStacks application is open and visible on a screen at all times.
- Add images to explain installation steps.
- Keep track of menu navigation state to prevent scanning for close buttons.
- Use Tesseract to read cash balance and automate build upgrades.
- Optimise priority list of images to scan.