Learn Python Game Automation 2021
What you'll learn
- How to create winning bots for Cookie Clicker, Google Dinosaur Run, and Piano Tiles using Python
- Understand bot design and problem approach
- Processing images with numpy and cv2
- Controlling the mouse and keyboard using pyautogui
- Simple object detection based on pixel values
- Pixel coordinate system, framerate, timing
- Fast screen capturing using mss
Requirements
- Basic/Intermediate Python knowledge
- No previous experience with automation required
Description
Have you ever wanted to create a Python program to play games online, or automate time-consuming, click-intensive work in your browser? In this course, we explore what it takes to program your own bot and create different bots for three popular online games: Cookie Clicker, Google Dinosaur Run, and Piano Tiles, in just one hour! Each game is slightly more difficult to play than the previous, but can each be accomplished with fewer than 50 lines of code!
In the course we use Python 3.8 and make use of the numpy, pyautogui, cv2, and mss libraries to create bots that can outperform a number of other bots you will find online. Afterwards, you will be able to take the approaches learned in the course and apply it to other games of your choosing. We will also look into what it takes to beat the scores achieved within this course.
Can you beat our bots?
Who this course is for:
- Beginner/Intermediate Python developers interesting in creating game bots
Instructor
Cameron has a bachelor’s degree in Computer Science and Engineering from TU/e and a master's degree in Robotics, Systems and Control, with a focus on machine learning, from ETH Zurich. He works at Swiss International Air Lines on artificial intelligence, and teaches robotics and programming across all ages. His company Hebbian provides STEM education to adolescents through online courses, workshops, and camps.