PyCon APAC 2023

Automating Victory: Beating browser games with accessible Python
2023-10-28 , track 1

Whether your task is data entry or playing a video game, Python has the power to automate it. In this talk we'll explore the power of intuitive Python libraries for I/O, then use them to automatically beat an in-browser video game using the same strategies and inputs as a human. We’ll also discuss applying project management skills to take personal projects from ideas to successes.


Even though many beginner programmers are motivated by solving day-to-day problems, many tutorials are disconnected from the real world. Automation is easy when inputs and outputs are consistent and locally stored, but how do you handle situations where that’s not the case? Using Python to automate beating a browser game is a great example of a real-world problem that’s uniquely hard to solve without Python libraries. The steps for solving this problem as a human map one-to-one with the steps for solving it programmatically and each step gives a simple and useful example of key automation libraries. Beyond highlighting some automation examples, I'll also talk about factors that led to this project's success rather than staying an eternal work-in-progress.

Jon's passion for learning has led him to Tokyo, Japan where he works as a software engineer at HENNGE. He can be reached through Afraidalot.com.