r/Python • u/Swimming_Solution_27 • 17m ago
Discussion I made a clash of clans bot to gather loot and upgrading walls
Since upgrading walls takes a significant amount of time and because I have a personal interest in these kinds of things, i decided to take on a project like this however i haven't been able to bring my hourly efficiency up to around 180m, as seen in other posts, mine is about 90m/hr.
ABOUT MY PROJECT:
Lootingen is a python bot that plays coc on a real android phone over usb using adb. It uses OCR to read enemy loot, attacks bases above a set Gold+Elixir limit with a dragon sweep, heroes, and spells, and can exit early once it secures a star. It also upgrades walls automatically when storages fill up, reconnects on disconnects, and tracks live stats (G+E/hr) and session history in a custom desktop dashboard.
I'm curious to hear your thoughts what kind of improvements could I make? My goal isnβt to create a full base upgrade bot, but rather one focused specifically on the "wall".