/Fruit-Box-Bot

A Python/C++ bot that plays https://en.gamesaien.com/game/fruit_box/

Primary LanguageC++

Setup

  • Install Tesseract
    • If you encounter errors when running you may have to download this file and place it in /PATH/TO/TESSERACT/INSTALL/tessdata (or replace the existing file of the same name)
  • Install all python libraries used in main.py

pip install ...

  • Create the C++ executable:

g++ algorithm.cpp -o algorithm.exe

  • Open Fruit Box in your browser
  • In main.py set the pixel varibles to match your screen
  • Run the python program and quickly switch to your browser window

python main.py

  • While the bot is running, press Esc at any time to stop it