Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snake body is not visible (speed = 50, display_option = True) #1

Open
josdyr opened this issue Feb 27, 2019 · 5 comments
Open

Snake body is not visible (speed = 50, display_option = True) #1

josdyr opened this issue Feb 27, 2019 · 5 comments

Comments

@josdyr
Copy link

josdyr commented Feb 27, 2019

The Snake body is not visible even when setting the speed = 50 and display_option = True as it says in the README. Tried with both Python 3.7.2 and Python 3.6.8.

I know others have had this issue too, from reading the Medium article, comments section.

Python3.6.8/3.7.2 packages:
absl-py==0.7.0
astor==0.7.1
cycler==0.10.0
gast==0.2.2
grpcio==1.19.0
h5py==2.9.0
Keras==2.2.4
Keras-Applications==1.0.7
Keras-Preprocessing==1.0.9
kiwisolver==1.0.1
Markdown==3.0.1
matplotlib==3.0.2
mock==2.0.0
numpy==1.16.2
pandas==0.24.1
pbr==5.1.2
protobuf==3.6.1
pygame==1.9.4
pyparsing==2.3.1
python-dateutil==2.8.0
pytz==2018.9
PyYAML==3.13
scipy==1.2.1
seaborn==0.9.0
six==1.12.0
tensorboard==1.13.0
tensorflow==1.13.1
tensorflow-estimator==1.13.0
termcolor==1.1.0
Werkzeug==0.14.1

OS: MacOS Mojave

Tried to go back in the commit log, but seems to be the same issue for me, for all versions.

@josdyr
Copy link
Author

josdyr commented Feb 27, 2019

Maybe it's a new package-update or something that messes with the plotting/printing of the game.

@josdyr
Copy link
Author

josdyr commented Feb 28, 2019

Tried on a university (windows) machine this morning and is working fine. Not sure what is going on.

@MochiLata
Copy link

This seems to be a OSX specific problem. To fix this problem, in update_screen(), add this line.

def update_screen():
pygame.display.update()
pygame.event.get() # <--- Add this line

@amelkikh
Copy link
Contributor

amelkikh commented Jun 9, 2019

Tried on a university (windows) machine this morning and is working fine. Not sure what is going on.

Please add requirements.txt or env file to the project.

@PlasmaIntec
Copy link

This seems to be a MacOS Mojave issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants