Add Python migration plan - #1
Conversation
Creates a markdown document detailing the 7-phase plan to port the AutoHotkey PTCGP Bot to a cross-platform Python application. Includes specifications for GUI (CustomTkinter), image recognition (OpenCV), and concurrency models. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Sets up the foundational architecture for the Python port. - Creates modular package structure (gui, bot, core, utils) - Defines dependencies in `requirements.txt` - Implements basic multiprocessing architecture in `main.py` Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Adds `src/core/adb.py` for emulator interaction via `adbutils`. - Adds `src/core/config.py` for JSON-based settings management. - Adds `src/core/vision.py` for OpenCV template matching. - Adds `src/utils/logger.py` with Discord webhook support. - Updates `.gitignore` for Python artifacts. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Creates the `customtkinter` GUI in `src/gui/app.py`. - Implements tabs for Instance, Bot, S4T, and System settings. - Binds GUI inputs to `ConfigManager` for saving settings. - Updates `src/main.py` to instantiate and run the GUI loop in the main thread. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Creates `BotManager` class to orchestrate multiprocessing instances. - Creates `BotWorker` class representing an individual emulator bot loop. - Wires the GUI Start/Stop buttons to the bot manager via thread-safe queues. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Adds `src/core/emulators.py` to handle MuMu and Waydroid connection logic natively depending on the OS. - Updates `BotWorker` to use the `EmulatorManager` to connect to ADB. - Updates `README.md` with Python installation instructions and emulator support notes. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Updates `migration_plan.md` to break remaining features into granular phases (Farming, Wonderpick, Advanced S4T). - Adds `FarmingSession` class in `src/bot/states/farming.py` to outline the core farming loop. - Adds `WonderpickSession`, `EventSession`, and `TradeManager` stubs. - Wires the `FarmingSession` into the primary `BotWorker` execution loop. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Translates the logical steps for loading an account, launching the application, waiting for the title screen, selecting packs, and reading card output into the `FarmingSession` state machine. - Provides commented-out OpenCV template hooks and ADB interaction examples for future coordinate/image injection. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
Creates a `Coordinates_Template.csv` file for the user to import into Google Sheets to help map the exact pixel coordinates, OpenCV image template names, and wait times needed to finalize the bot's state machines. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Moves the new `src/` directory, `requirements.txt`, `migration_plan.md`, and `Coordinates_Template.csv` into a dedicated `ptcgp-python-port/` directory. - Copies the Python-specific `README.md` into the new folder. - Restores the root `README.md` to its original AHK state to ensure the legacy repository remains unaffected. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
- Zips the `ptcgp-python-port` directory into `ptcgp-python-port.zip`. - The archive includes `STATUS.md`, `requirements.txt`, `src/`, and all other migration files. - Removes the uncompressed `ptcgp-python-port` directory and root-level python files to keep the legacy repository clean. Co-authored-by: Y6b <161412+Y6b@users.noreply.github.com>
Added the migration plan to
migration_plan.mdoutlining the steps to port the AutoHotkey codebase to a modern, cross-platform Python architecture.PR created automatically by Jules for task 17808569620746900151 started by @Y6b