Python Snake Game with OOP

  Рет қаралды 12,023

Coder Space

Coder Space

Күн бұрын

Пікірлер: 17
@ilnazthe3523
@ilnazthe3523 Жыл бұрын
Hey yo what's up bro. Can u show the realization of this game with element of competition? U can add data base for controlling 5 best scores of players, and of course every one who wants to play this game should type his nickname at the beginning of the game.
@Coldr0n
@Coldr0n Жыл бұрын
Hey, I was wondering, what theme you're using in pyCharm ?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
Monokai
@mrdixioner
@mrdixioner 5 ай бұрын
Очень минималистичные алгоритмы, как увеличения длины змейки, так и проверки самоедства! У других намного сложнее и запутаннее. Спасибо огромное за великолепные уроки!!!
@jeremyhubaker1199
@jeremyhubaker1199 Жыл бұрын
too hard for beginners this is an intermediate tut that uses modules ive never even heard of
@yasuperdashakakasha
@yasuperdashakakasha Жыл бұрын
thanks it helped a lot!
@wateryshoes667
@wateryshoes667 Жыл бұрын
I followed everything as you said and I am getting attributeerror because game has no attribute snake (regarding using the game.snake.get_random_position())? How is that possible since we are setting it inside new_game method which is run when game class is initialized?
@letter1014
@letter1014 11 ай бұрын
You have to follow it VERY carefully.
@aldoortega4496
@aldoortega4496 7 ай бұрын
It is totally possible in the instance of the run. - Game runs new_game() - new_game() add self variables snake and food - snake is declared first as an object of Snake(), with argument self. - food is declared as an object of Food(), with argument self (including game which was declared first) - Food initialization stores Game self content in game. - Food.__init__() can totally access to game.snake which is Snake object which contains get_rangom_position().
@cetysaa
@cetysaa Жыл бұрын
Hey yo what's up bro , I really enjoyed your video but I really have a little problem while coding and if you can help me please I'll be very happy really cause really I'm lost .
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
you can email me, it is in the channel description
@cetysaa
@cetysaa Жыл бұрын
@@CoderSpaceChannel really ?! Omg thank you !!
@dashsights4258
@dashsights4258 Жыл бұрын
Clean
@kaikenxl6800
@kaikenxl6800 Жыл бұрын
what version of python are you using?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
3.10
@kaikenxl6800
@kaikenxl6800 Жыл бұрын
@@CoderSpaceChannelthank you i was having issues with importing pygame but it was because the version of python i was using wasn’t fully supported with pygame
@moody_moon_coder
@moody_moon_coder Жыл бұрын
8 minutes videos, 30 minutes of code! You're lier!
Let's code Breakout Game. Python Pygame Beginner Tutorial
6:37
Coder Space
Рет қаралды 11 М.
Змейка на Python | C нуля для новичков (Pygame)
1:34:32
Skypro: онлайн-университет
Рет қаралды 7 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 18 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,3 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 20 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 9 МЛН
Snake Game in Python Tutorial with pygame 🐍 (OOP)
1:08:52
Programming With Nick
Рет қаралды 10 М.
Let's code 3D Snake Game in Python [ DEPRECATED ]
7:55
Coder Space
Рет қаралды 13 М.
Create Snake with Python in 20 MINUTES!
22:59
baraltech
Рет қаралды 20 М.
Code Snake Game in Python
35:34
Kenny Yip Coding
Рет қаралды 28 М.
Игра "Змейка" на Python (библиотека pygame)
3:32:50
Alexander Belyakov
Рет қаралды 7 М.
Learn Python Classes With a Text-Based Battle - OOP Tutorial
15:25
Ork Slayer Gamedev
Рет қаралды 154 М.
Snake Game in Python Easy Tutorial | PyGame
20:38
Programmers' Place
Рет қаралды 16 М.
Pygame's Performance - What You Need to Know
9:11
DaFluffyPotato
Рет қаралды 203 М.
Build a Simple SNAKE Game with Python! [PyGame Tutorial 2022]
42:14
LeMaster Tech
Рет қаралды 4,2 М.
Let's code a SNAKE GAME in python! 🐍
33:06
Bro Code
Рет қаралды 626 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 18 МЛН