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

If your game window is very easily frozen but the training is still running, the solution is here. #25

Open
hcchengithub opened this issue Jun 20, 2017 · 0 comments

Comments

@hcchengithub
Copy link

hcchengithub commented Jun 20, 2017

If your game window is very easily frozen but the training is still running, the solution is here.
Wrapped Game Code\tetris_fun.py needs to add one line as shown below,

... snip ...
	def frame_step(self,input):
		# add this line 
		pygame.event.pump()
	
		self.movingLeft = False
		self.movingRight = False
... snip ...

Thanks to LeoLiu8023Am at
http://www.icourse163.org/learn/BIT-1001872001?tid=1001965001#/learn/forumdetail?pid=1003592809

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

1 participant