rdchris / cocbot Goto Github PK
View Code? Open in Web Editor NEWPersonal project, automated bot
Personal project, automated bot
The following is a personal project I did over the course of two weeks my family was out of town. It's basically a completely automated bot that plays a top 3 iOS game, clash of clans, impersonating an active player. The bot clicks on randomly locations within the range of acceptable areas, collects resources, makes human-like pauses and breaks after it's been "playing too long", search for opponents to fight, execute attacks mimicking my attack styles, and provides me updates on how it's doing. The code base is currently not where I would like it to be from a clean-code perspective, but I'm slowly re-factoring it when time permits. Functionality however it's extremely effective, I had to tune-down it's effectiveness as I started landing in the world top 10 in resources gained per day. Some of the challenges I faced when writing this were, an extremely tight time-line (2 weeks), using groups of technologies I had never played with before, and overcoming some clever game developers who designed their game to makes this task much more difficult. For example, the loot numbers used to see how much a base has uses pixel layout randomization, which means the pixels change slightly in color and position, making it impossible to hard-code a solution to see how much loot a base has. It was a non-trivial problem that I eventually solved by taking a screenshot of these numbers and running them through google's tesseract OCR engine with a few minor tweaks. This provides me a 99% accurate read of the numbers on the screen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.