
Snake Game Python Tutorial
video description
Date: 2022-03-14
Related videos
Comments and reviews: 5
David
34:24: When I tried to run it, the snake would move toward the right, but as soon as I hit an arrow key, it displays this error:
self.turns[self.head.pos[:]] = [self.dirnx, self.dirny]
TypeError: 'tuple' object does not support item assignment
I gained an understanding of most of the tutorial by giving verbose, meaningful names to all of the variables, but that error seems to be a show-stopper.
reply
34:24: When I tried to run it, the snake would move toward the right, but as soon as I hit an arrow key, it displays this error:
self.turns[self.head.pos[:]] = [self.dirnx, self.dirny]
TypeError: 'tuple' object does not support item assignment
I gained an understanding of most of the tutorial by giving verbose, meaningful names to all of the variables, but that error seems to be a show-stopper.
reply
Tamara
Hey, Tim! I love your tutorials, but it's realy hard to understand what's going on, when u don't have HALF of code(
When you don't have cube class and all it's functions, but still using them
It made me cry, please don't make me cry next time!
I'll appreciate it
reply
Hey, Tim! I love your tutorials, but it's realy hard to understand what's going on, when u don't have HALF of code(
When you don't have cube class and all it's functions, but still using them
It made me cry, please don't make me cry next time!
I'll appreciate it
reply
MistralKriss
Ok first time doing Python for me. TBH I didnt understand at all how movement is handled. Yes it works but really I dont like much the explanations. (saying hum yea that's how i's done, is not a valid explanation imo)
reply
Ok first time doing Python for me. TBH I didnt understand at all how movement is handled. Yes it works but really I dont like much the explanations. (saying hum yea that's how i's done, is not a valid explanation imo)
reply
Teresa
hey! so I've tried to recreate and follow your video but when I try to run it, the game window doesn't show up to me. Is there any possibility for you to help me? Thanks!
reply
hey! so I've tried to recreate and follow your video but when I try to run it, the game window doesn't show up to me. Is there any possibility for you to help me? Thanks!
reply
mario
File -C:\Users\mario\snake2.py-, line 198
print(\'Score: \', len(s.body))
SyntaxError: unexpected character after line continuation character
pls help
reply
File -C:\Users\mario\snake2.py-, line 198
print(\'Score: \', len(s.body))
SyntaxError: unexpected character after line continuation character
pls help
reply
Add a review, comment
Other channel videos















