{"repo":"anugrhaswi/Coc-Auto-Farm","free":true,"listed":false,"github":"https://github.com/anugrhaswi/Coc-Auto-Farm","clone":"git clone https://github.com/anugrhaswi/Coc-Auto-Farm.git","description":"COC Auto Farm Bot for Android emulators using YOLO vision and EasyOCR","language":"Python","stars":16,"topics":["ai","automation","python","yolov8"],"license":"MIT","category":"workflow-automation","readme_excerpt":"COC Auto Farm Bot A thread-safe automation bot for Clash of Clans farming on LDPlayer or any compatible Android emulator/runtime. Uses YOLO object detection and EasyOCR to automatically search for bases, read resource values, and initiate attacks. Features - Automated Farming : Searches for bases, reads resource quantities (Gold, Elixir, Dark Elixir), and attacks when thresholds are met - Thread-Safe GUI : Tkinter interface communicates with bot worker via queue (no crashes from threading) - Graceful Stop : Press F12 to stop farming cleanly at any time - Retry Logic : Up to 4 attempts per detection to handle timing issues - Defensive Programming : Safe .get() defaults, OCR error handling, focus fallback tricks - Logging : File + console logs to logs/bot.log Requirements Software - Python 3.8+ - Android emulator / Android runtime (configure the window title regex in config.py ; the default matches LDPlayer but can be changed for any emulator) - NVIDIA GPU (recommended for YOLO inference; CPU mode supported) Python Dependencies See requirements.txt for full list: - ultralytics (YOLO) - easyocr (OCR) - pywinauto (Window automation) - pyautogui (Mouse/keyboard) - keyboard (F12 hotkey) - opencv-python (Image processing) - numpy (Arrays) Installation 1. Clone the Repository 2. Create Virtual Environment 3. Install Dependencies 4. Obtain Model - Place your best.pt YOLO model at the root: cocbot/best.pt - Or update config.py with the correct path Usage Start the Bot This launches a T","default_branch":null,"files":null,"tree":[],"storefront":"/r/anugrhaswi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anugrhaswi/Coc-Auto-Farm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}