jackweatherford / jstrisbot Goto Github PK
View Code? Open in Web Editor NEWAI that plays Tetris through https://jstris.jezevec10.com
AI that plays Tetris through https://jstris.jezevec10.com
I have installed the requirements and no sign. The script is stuck at:
I've done what you said, everything. I am running it on powershell, on microsoft edge ( Yes it is my favorite browser and I do not know why microsoft edge is not popular it is the best browser in the entire universe. Anyways,... ) I've troubleshooted every possible ways.
The "GO" message appears and still, no activity. Help.
PS: Bet you can't create a TETR.IO bot working and running on windows playing ZEN mode.
In short. The bot does not work and gives the following error:
C:\Users\Home\webibot\JstrisBot>jstrisBot Please enter a Jstris Sprint game Waiting for "GO!" message to appear Unhandled exception in listener callback Traceback (most recent call last): File "C:\Users\Home\AppData\Roaming\Python\Python311\site-packages\pynput\_util\__init__.py", line 228, in inner return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Home\AppData\Roaming\Python\Python311\site-packages\pynput\keyboard\_win32.py", line 287, in _process self.on_press(key) File "C:\Users\Home\AppData\Roaming\Python\Python311\site-packages\pynput\_util\__init__.py", line 144, in inner if f(*args) is False: ^^^^^^^^ File "C:\Users\Home\webibot\JstrisBot\jstrisBot.py", line 842, in on_press pixel_color = screenshot( ^^^^^^^^^^^ File "C:\Users\Home\AppData\Roaming\Python\Python311\site-packages\pyscreeze\__init__.py", line 515, in _screenshot_win32 region = [int(x) for x in region] ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Home\AppData\Roaming\Python\Python311\site-packages\pyscreeze\__init__.py", line 515, in <listcomp> region = [int(x) for x in region] ^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' Ctrl + C Input - Terminating
How to fix?
why is the bot so slow, im getting like a 1.64 pps
The script does not work when detecting the "go" message.
Python version: 3.10.1
Monitor resolution: 2560x1440p
Settings: all of the jstris defaults
Have tried:
Picture of the page: https://gyazo.com/1f96845e59d77301b79af36d3e5a12de
The bot is running perfectly, except... It makes himself stuck. When I start the game of sprint for 40L, the bot plays and clears some lines but when he gets a piece that cannot be placed anywhere... The bot just freezes.
For example, when he got an O without any places to drop it, it freezes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.