Short python script to win mathbattle (Telegram gaming bot: https://telegram.org/blog/games)
###What you need:
Chrome Browser installed
Webdriver for Chrome: https://sites.google.com/a/chromium.org/chromedriver/
Python 2
Selenium for Python (e.g: install it with pip:
pip install selenium)URL to your Mathbattle Game (looks like: https://tbot.xyz/math/#eyJ1IjoyNDUzNzU0NjMsIm4iOiJSYXB...') You can get this URL by opening the Mathbattle game from your desktop client. Then just copy the URL from the Browser
MathBattleSolver.py script
###Set these Variables in the script:
GAME_URL='https://tbot.xyz/math/#eyJ1IjoyNDUzNzU0NjMsIm4iOiJSY...'#See point 5WEBDRIVER_PATH='/home/path/to/webdriver'#See point 2NUMBER_OF_WINS=5000#Dont make it to obvious ;)###Then start the script by typing:
python2 MathBattleSolver.py
Now you should see a chrome window opening up. Then the game is played by the script.
See a video here:
Have fun :)
