AI that plays Tetris through jstris.jezevec10.com
I do not condone cheating, this is a script made for learning purposes only, use it at your own risk. This script only works in Sprint (singleplayer) mode and won't work in Live (multiplayer) mode.
-
Clone this repository:
git clone https://github.com/jackweatherford/JstrisBot.git
-
Enter the newly created directory:
cd JstrisBot
-
Install the required Python modules:
pip install -r requirements.txt
-
Run jstrisBot.py (with Python >= 3.0):
python jstrisBot.py
-
Navigate to jstris.jezevec10.com in your favorite web browser.
-
Start a game of Jstris in Sprint mode.
-
If the game is over and/or you want to restart, you must enter Ctrl + C in your terminal and re-run the bot before starting a new game.
If you are experiencing any issues - make sure your Jstris Settings match the default:
Also be aware of PyAutoGUI's fail-safe: If you move your mouse to a corner of your screen - the program will terminate.
Additionally I have not programmed the bot to deal with holes in the structure - so it may stop working if all possible moves create holes.
For any other problems - please create a new issue in the repository or contact me directly.