The silly game code is available on GitHub: github.com/carmensantos/snake-game Code CSJackie15 for 15% off Code Chrysalis' immersive coding course in Japan 🤩 p.s. please don't show this code to my boss
@ukaszbaczek726610 ай бұрын
"Please, don't show this code to my boss." It would be worthwhile to rewrite this code in an object-oriented manner in the next episodes - it would be a great learning experience for the viewers and good material for a video or several videos.
@FredyantonioPelaezcastan-tv3nd9 ай бұрын
You are novice , you video Is shit , the people saw the video , because you are women but your proyect Is Boring, Is Easy , a child the 5 Years able make the same proyect
@FredyantonioPelaezcastan-tv3nd9 ай бұрын
You proyect Is shixt
@FredyantonioPelaezcastan-tv3nd9 ай бұрын
You proyect Is boring
@com.youtube19 ай бұрын
I've been trying to learn coding and I wanted to program a snake game, but unfortunately when I use pre-built shared libraries from internet, it becomes a frog game :)
@themichaelw10 ай бұрын
1:34 You clearly haven't seen the spaghetti I'm able to produce in Java. Spaghetti code knows no boundaries; it transcends design patterns and exists in a higher dimension than we can never possibly understand.
@CSJackie10 ай бұрын
i laughed out loud at your comment
@pawlkoech85418 ай бұрын
i loved watching you solve the problems and being happy when something works.
@santiagoseijas921710 ай бұрын
It's really nice watching you doing some coding just for fun! I enjoyed the way you went through the problems since that is actual coding.
@akshat90908 ай бұрын
Dude you're the coolest tutor I've got! The way you're explaining makes so much more easier at least for my understanding.♥
@CSJackie8 ай бұрын
Awesome, thank you so much!
@perlhacker10 ай бұрын
always nice to do snake in some language. Awesome that you made us watch you doing it. And im Happy that it's same "struggle" on you side as it was on mine, it's always good to do a little thing outside the box of the normal "work" related programming work. Nice video.
@CSJackie10 ай бұрын
haha for sure! thank you so much :)
@TheTrienco10 ай бұрын
In a weird way, Snake is a good starting point to think about common data structures. How do you represent it? A double linked list is the easiest (add new position to head and pop last position at the tail, skip the second step when eating a fruit). But it's not an efficient structure (chasing pointers to find the next element can be slow). An array would be better, but then you'd have to grow (possibly reallocate and copy) and shift (copying everything by one position). A ring buffer would be perfect, but they usually aren't meant to grow. It could be a fun exercise to see how much you can "over engineer" the problem for best performance (which is of course very silly and pointless for a Snake game, but something AAA devs will have to worry about).
@Andy-il7kf10 ай бұрын
This is great Thank you :) it really helps to see a professional going through the same process of finding mistakes, debugging etc and sticking at it until they get the project where they want it. It inspires me to keep going/learning when I get stuck on my owm stuff
@CSJackie10 ай бұрын
thank you so much :)
@Andy-il7kf10 ай бұрын
@CSJackie PS It would also be great to see how you approached this OO in python too, as a comparison
@JohnBarratt275010 ай бұрын
I was born in 1963, so I was taught nothing whatsoever about computing at school . And only very superficially in Fortran at Uni. I am lost, watching this video, Jackie! But impressed.
@CodeChrysalis10 ай бұрын
Awesome Video! Really clever how you coded this Snake Game with another kind of snake! ;) Thank you so much for featuring us in the video, we look forward to working with you 🤝 Keep up the good work 💪
@ricardoschenk51136 ай бұрын
Hey Jackie, Going to watch all your content! just finished my course of basic python and hope to get as good as you. greetz Ricardo
@trex61428 ай бұрын
Well done. I find it humbling to realize that I put in all of the errors in my code.
@bobina_artz10 ай бұрын
Welcome back, MISSED YOU SOOOO MUCH😘
@CSJackie10 ай бұрын
🥹 I missed you guys
@Laura-nt3nd10 ай бұрын
this video is so wholesome 😂
@CSJackie10 ай бұрын
thank you
@iycsapphireaandiinternational2 ай бұрын
thank you for the introduction to pygame
@raquelsilver219 ай бұрын
This is what I was looking for months! Just a ''code with me'' with simple exercises like a snake game! Please do more since since this helps so much people who wanna start coding but are stuck on the ''tutorial lane'''. What we are missing are projects and 'code with me' is perfect! Are you thinking about making a series of this? (Already Subscribed)
@CSJackie9 ай бұрын
Thank you! Yes? the next one will be tic tac toe 🥹
@CSJackie9 ай бұрын
Yes*
@artemKraft9 ай бұрын
thank you for sharing your knowlage. It is amazing to see how the time is chaning. So thank you for sharing your knowlage with all other people.
@pulledporksammiches9 ай бұрын
Loved learning this and coding along. I also love your random trail of thoughts ♥
@KaiagaAg6 ай бұрын
Hello my best instructor. Congratulations on this incredible tutorial!
@King568477 ай бұрын
why you look so beautiful when wearing glasses?🥹 Edited :- Your coding thinking is so good btw great video ❤️
@seanwcom9 ай бұрын
Fun evening project, thanks for sharing! I was just looking at your generate_starting_position() function and I think the reason your snake and target were originally appearing offscreen is because you aren't taking Y into account. You're creating a position_range based on screen width (1280), then returning both a random X and Y coordinate that are based on the screen_width pixels. This is causing you get sometimes land outside the height which is only 720 pixels. A quick change to turn position_range into position_range_x and then create position_range_y based on screen_height. Then be sure to use both position_range_x and position_range_y in the return. Not sure if KZbin will format this weird or not, trying anyway: def generate_starting_position(): position_range_x = (pixel_width // 2, screen_width - pixel_width // 2, pixel_width) position_range_y = (pixel_width // 2, screen_height - pixel_width // 2, pixel_width) return [random.randrange(*position_range_x), random.randrange(*position_range_y)]
@FitNiket10 ай бұрын
you're coding skills are really good really looking forward for more of youre videos
@sajadghamari47488 ай бұрын
loved this problem solving challenge
@adam-xt8te10 ай бұрын
I don't have idea what you're talking about but I'll watch and listen
@JohnBarratt275010 ай бұрын
I feel the same!
@CSJackie10 ай бұрын
🤣
@kpm2510 ай бұрын
Thanks so much, I used this to get refreshed back into python, appreciated!
@KojiKazama2 ай бұрын
The thing that got me out of spaghetti code is Uncle Bob's - Clean Code lessons. Also I am a software engineer (well DevSecOps and automation) but I can't wait to spend the evenings coding games in Unity and watching programming videos like this. I'd love to see if someone checks out this code and adds sprites, I'm curious to see them in pygame.
@thejannzer10 ай бұрын
Please do more of this stuff... it helps me so much
@Antal4610 ай бұрын
I joined uni in London at 34, now doing my 2nd year of Computer Science. I just wish they were focusing more on practicing the actual useful skills and not just writing report, reference, academic style bla bla. You making some cool videos, giving me some ideas to be more efficient!
@oreonengine944410 ай бұрын
I can remember, did this a my first university project, ASCII snake in the terminal haha, lots of fun :D
@CSJackie10 ай бұрын
it's so fun!! my comp sci colleagues said they also coded this at uni haha
@matteoZattera10 ай бұрын
Lol, I also coded snake in the terminal with C++ and I uploaded a video on my channel
@DJRanoia10 ай бұрын
Glad you made it through Amazon video layoffs. Go Jackie! Another relaxing video, thanks!
@CSJackie10 ай бұрын
I don’t know yet (European laws delay the process) so please pray for me 😃
@sergeys76037 ай бұрын
Very Nice and Helpful Tutorial. Thank You
@super-810 ай бұрын
Very Nice. Good Work and this is the beginning.
@com.youtube19 ай бұрын
I Loved You~r Desktop monitor 🤩 I Not engineer but loveed your content
@robertorguez81489 ай бұрын
Coding is the best plan for a saturday evening! Period.
@mustafa02-c6x10 ай бұрын
Seeing the result of your work in front of you is amazing Nice work
@alexeykhrapko40110 ай бұрын
I expected to see usage of Sliding window algorithm for the snake cause it fits here perfectly. But that is a bit more advanced approach for this video.
@serloinz10 ай бұрын
from what i remember about programming the delay from your keyboard to the snake (where it feels like it's not responsive) it's probably from your tick rate ..clock.tick(10) ..as it's not polling the keyboard as often. 60 would feel more responsive but you would obviously have to find another way to slow down your snake. I could totally be wrong but that's what my instinct tells me it is :)
@lancemarchetti867310 ай бұрын
Great upload! I'm definitely sending this to Matthew Berman.. he's gonna love it. He literally tested about 20 different LLMs, instructing them to create a simple snake game in py... and AI is still trying to get it right... lol.
@justplayinggames9639 ай бұрын
I don't know why coding looks so HOT
@QuantumMeme7 ай бұрын
Hello, I'm new in pyhton developing... in the video 1:01 in that time you installed oygame module can you clearfy it! please!!!
@bumbam12310 ай бұрын
Oh that's funny. "I won't do object-oriented, I will do spahetti-code instead". There is a huge world of procedural programming, some years back it was the way to write code. Procedural code is still a big part of your operating system. Not being object-oriented is not inherently bad, it's a completely normal way of doing things done
@CSJackie10 ай бұрын
yes I like your point of view!
@ShinigamiGrin9 ай бұрын
@@CSJackieit’s a fact not just a pov, it’s how things work….
@Shr11mp9 ай бұрын
Yeah, I took that as a personal attack when she said that 😆 OO is 90% of the time doodoo. A blend of procedural and functional is the way to go with sooo many scenarios. I can’t remember the last time I wrote OO, probably did a little bit right out of college, but that’s about it.
@rockinvegan176510 ай бұрын
Haha, I tried to program this game 35 years ago in Turbo Pascal.
@CSJackie10 ай бұрын
😭 👑
10 ай бұрын
Jackie, weird question but where did you get your vest/sweater? My wife has always cold hands and this looks like half the solution of a sweater and hardwarmer in one 😆. Your content is very relaxing, keep it up 👍
@CSJackie10 ай бұрын
Thank you so much! This one is from Amazon but I have a similar one from lululemon which also has the thumb slots lol 😄 the lululemon define jacket is amazing you can have a look!
@Jibril_Abdulkadir10 ай бұрын
Great vid Jackie 🩵
@CSJackie10 ай бұрын
Thank you 🥹
@moonshadows117 ай бұрын
You are a good programmer 💜
@qayyax10 ай бұрын
I really love this video
@shadows_12210 ай бұрын
14:41 is the face i make when something really simple that is not working for me 😂😂😂 Sudoku or Chess might be a good challenge by the way
@CSJackie10 ай бұрын
haha we're the same. oh my, challenge accepted! :D
@Netryon10 ай бұрын
One thing you wished to do is HTML CSS animating, because you know how easy is to move absolute square inline-block with arrows changing the x,y value as modern react/angular renders website not having to reload it or save and preload reinstalled graphics driver. Can build it, but from my experience I know must have that Laravel/symfony/.net core framework and don't spend your time on easy tasks already build by everybody else, which every empty youtube channel is obviously not and I can't paly it on fb.
@diya.codes9310 ай бұрын
Hey Jackie, you plan to do more videos like this one? For example showing some backend or full stack?
@CSJackie10 ай бұрын
If that’s what you guys want, then absolutely 😊 I did a few in the past
@Velvetskyy10 ай бұрын
Oh greate usefull video we miss uh and pls try to upload video daily lot's of ❤😊
@CSJackie10 ай бұрын
Thank you so much!
@oscarmacho27988 ай бұрын
What font do you use in VS Code? It looks very neat and clear
@andy_palms10 ай бұрын
python is so cool! good video, greetings 🙂
@Deepak-ji3cx4 ай бұрын
Keyboard giving really good ASMR
@MudasirChanna-m3d10 ай бұрын
You are a pretty good teacher like a lecturer, I love you so much !!
@contaassinante598410 ай бұрын
I didn't like seeing Procedural programming used, but I thought the result and the programmer were really beautiful.
@minskwatcher10 ай бұрын
As a dev with 10+ yr experience, I'd like to just say thank you.
@CSJackie10 ай бұрын
thank you for watching! :)
@minskwatcher10 ай бұрын
@@CSJackie it is suddenly way more relaxing to watch someone else code, especially when they do it nicely :)
@nunoalexandre640810 ай бұрын
Love it!!!!!!!!!! Sooooo Beautifulll...Code....
@CSJackie10 ай бұрын
Thank you!!
@wartyrant862710 ай бұрын
11:22 ASMR segment 🚶🏼♀️🥤🫧
@pflagler8 ай бұрын
The game is delayed in responding to your keyboard inputs because you lowered the framerate of your main loop to 10 FPS. If a keystroke happens between frames, the loop doesn't catch it. Instead, I would recommend setting the framerate back to 60 and limit the speed of your snake a different way, like only moving it once every 3 frames, for example. You can use a variable to modify the speed, which you would want to do if you plan to accommodate multiple difficulties.
@CSJackie8 ай бұрын
Ah makes sense, thanks so much!!
@adebayoemmanuel91110 ай бұрын
People like you make me fall in love with Programming ❤ Thank you so much ❤
@Stephen_233010 ай бұрын
Look who I found because of KZbin 🎉, and as a student of CS, I’m doing my thesis about a Web app😊
@question27798 ай бұрын
as i work a lot doing hard stuffs like automations, softwares and things like this, when i reach at home i can´t even think about programming, i need plays video games
@rafinayel-r2q10 ай бұрын
very cool video 💯
@jorgeraymason10 ай бұрын
Not a huge fan of Python but your problem solving skills are on P O I N T.
@astralnomad8 ай бұрын
Snake game actually goes back much farther than the Nokia.. it came out in the late 70s for simple home computers..
@The.love18 ай бұрын
amazing video ...plz continue and can you advice me what should i learn next i have just finished learning all python sntax and now i feel can not create this py game by my self ..plz tell me and thank you
@JacquellynStuyvesant10 ай бұрын
This video is incredible! What theme do you use?
@CSJackie10 ай бұрын
thank you so much!!
@JacquellynStuyvesant10 ай бұрын
thank you
@kadirdagkoylu21010 ай бұрын
i realy like it and please can u do more project video
@PointEndClick10 ай бұрын
This video is awesome.
@CSJackie9 ай бұрын
Thank you 🥹
@LuisLopez-ns6yg9 ай бұрын
Hi Jackie great video I'm starting coding, I have a question recently I bought a ultrawide monitor like yours and I would like to know the dimensions of your desk in order to have a good workspace. Thanks in advance!
@Nejosudo10 ай бұрын
No se que dijiste claramente, pero entendí todo jaja me enamore del canal
@Abdullah-zl9ub10 ай бұрын
I like these coding videos! Also I like how your genuine I your posts. Quick 2 questions: what’s your thoughts on SwiftUi? Is m1 MacBook Air a good upgrade and can code on it? (Using pro 2015 currently)
@freepythoncode10 ай бұрын
Thank you so much 🙂❤
@eytanbenittah7 ай бұрын
What keyboard and switches are you using?
@danielessien525610 ай бұрын
When is the iterm2 setup releasing??
@sciutosat69599 ай бұрын
im in love with you after watching this video
@Den-zt4ry8 ай бұрын
nice video. good job
@CSJackie8 ай бұрын
Thanks! :)
@UCcdTp7XpCkVLkaRCsDcifFg10 ай бұрын
yes i know this game, ikd enought
@x12_7910 ай бұрын
I feel like the input issue is caused by the low frame rate. You could try and increase the frame rate to 60 again but create a simple timer to tell the snake when it can move.
@CSJackie10 ай бұрын
Yes I think that would be a great way of handling this!
@eric-22210 ай бұрын
Maestro!
@CSJackie10 ай бұрын
😂🫶
@vilmarcabanero250010 ай бұрын
That's cool! Btw, can you share what brand of keyboard you have? It's cute. Haha.
@CSJackie9 ай бұрын
It’s Royal Kludge ☺️
@vilmarcabanero25009 ай бұрын
@@CSJackie Thank you. ☺
@xinzeng-iq7zv7 ай бұрын
can u upload that game to your website for download
@ДаниилБей-ж8в10 ай бұрын
You are well done
@clonefiesta58358 ай бұрын
please tell me which keyboard you're using
@CSJackie8 ай бұрын
Royal kludge rk68!
@clonefiesta58358 ай бұрын
@@CSJackie tysm, love your content!!
@tamantije24638 ай бұрын
Do you have any python tutorial for beginners? I would love to see that.
@Goodprogramer10 ай бұрын
Great video with a great coding and inspirational content.following you so long .can you code a saas website?
@Zer0kbps8 ай бұрын
My PowerShell scripts always look like spaghetti on reflection and I can seldom read them after a few weeks, it's the human way I'm sure. I wonder if you could take your code and put it through chatgpt and ask it to make it look pretty, would it still work after is the question...I must try it?
@micwax10 ай бұрын
Great video . Can you put your gear info into your profile? I like your keyboard better than the one who came with my iMac. For coding, it's not the best. Thanks!
@waqarkhanpisces7 ай бұрын
how many month did you take to learn coding ?
@devoiddude10 ай бұрын
Is that fleet you're using ?
@pegasusagus39110 ай бұрын
which compiler are you using? thanks
@durchschnittlich10 ай бұрын
Python doesn't compile
@pegasusagus39110 ай бұрын
thanks@@durchschnittlich
@draoi9910 ай бұрын
Well, I played Tetris for the most part.
@CSJackie10 ай бұрын
I'll try that one next!!
@cherymara7 ай бұрын
please tell me what kind of computer mouse is this
@edward31059 ай бұрын
for how much time do you own that chinesse chair,is it good,does it worth the money?
@mrflexii206710 ай бұрын
Even the simple games can take hours to code :D
@MohammediAbderraouf-v2q10 ай бұрын
what is the keyboard you are using?
@CSJackie10 ай бұрын
Royal kludge rk68
@Rahul-rawat-019 ай бұрын
Which IDE do you use . Please reply, Love from India ❤❤
@hadasaBosolaАй бұрын
pls the pygame window is not opening plz help me😭😭😭😭😭😭
@CSJackieАй бұрын
I know the feeling
@hadasaBosolaАй бұрын
@@CSJackieplz can you help me
@marcoio874210 ай бұрын
A file with 600 lines of code? I have seen functions with 800 lines of code in files with >3k lines. Oh no comments nor docstrings. That was hardcore