- Download all files in this repository.
- Open the main.ipynb file and click on Run All button.
- Open Google cricket game in your favourite browser. Wait until small screen focussed on the stumps appear
- Start the game by pressing spacebar.
- Enjoy spectating the game.
- The bot uses template matching feature of OpenCV and recognised the ball approaching.
- When the ball is at appropriate distance spacebar is pressed with the use of pyautogui to hit the ball.
- Pillow library
- OpenCV
- pyautogui
- NumPy
Thanks to organisers of HackTheGames, its all your motivation to make this bot.