Making a Snake Game Where You're the Food in Python - playproduction.de

Making a Snake Game Where You’re the Food in Python

CS Dojo
Views: 232834
Like: 4946
I made a snake game in Python that works in the terminal… but this time, you’re the food! lol

You can check out the game and the code here:
You can find my implementation of the regular snake game here:
You can check out @LorenzoCampos’s original snake game that inspired my idea here:

205 Comments

  1. Can we become a programmer or game developer even if we are poor in maths?

  2. Please make a video on algorithm for sparse matrix from tuple matrix.

  3. Анастасия Романовская says:

    Здравствуйте, сделайте пожалуйста, русские субтитры🙏🙏🙏

  4. Bro how can i share my own snake game link to someone

  5. Please Help Me: I mistakenly Deleted A Python file after making it into a exe, Can you make a video on decompiling a python exe

  6. I want to get a job at Google sir plzzz guide me where I have to start from 🤔

  7. Hi iam 17 years now,provide steps to me..to get in to google or other top companies , in 2-3 years,I mean at age 20 .love from 🇮🇳

  8. Hi CS dojo, please make a video on "How to use Github".

  9. Hello,

    I am looking for your valuable suggestion,

    My name is Sri and I am from India,I am now 30yrs age I have worked 5years in aviation and my degree is in aviation,I lost my job due to pandemic and now unemployed I am willing to change my career in IT/software side I have zero knowledge and don't know where to start can you suggest which will help to learn and land in job ASAP, I request your suggestions on which language or where to start

    Awaiting for your valuable reply and thank you for your valuable time

    Thank you

  10. which screen recorder do you use for youtube

  11. I learn about you dojo you help me so much your are truely amazing you share about your knowledge in programming i am a computer science student but this time i started know and understand how to use codes… hope fully you can download more tutorial.. thank you😍 from Philippines

  12. After all these years this guy still coding snake lmao you hate to see it.

  13. oh that was you 😮 i remember seeing this project

  14. Bro please make videos on how you learnt english language

  15. You smile nicely bro! That's the real happiness, only you can get from coding…

  16. now you can add bigger levels, more snakes and two player coop.

  17. oh my god I actually played this I saw it at the like trending page

  18. If it were C++, the snake would've caught you. Luckily, speed's weak with Python

  19. Blessed or curses? I would go with blessed lol

  20. and the final question why the snake eats an apple ????

  21. I want to make a snake game in python using stack and queue. Please help me

  22. I remember watching your python tutorial video like 3-4 years ago i was subscribe since you had 14 subscribers. I see your quality has gone super higher and you are verified!

  23. I really wanna make an application for a restaurant! Trying 🤔

  24. thank God i actually thought you were gone

  25. The emojis utilized for the game were changed as a result of Google, resulting in the game becoming distorted. Is there any way to circumvent this?

  26. Sir how do i remember coding sequence in my mind

  27. YK will look 100x hotter if he grows beard

  28. I am a big fan of you 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩

  29. Brother witch compiler's could better to use bro

  30. Hey, I have a cool Fallout DCNV Engine To make a Triple Python World with….Help me Develop it, It could be really cool (Project X-18) Fallout Python. We can Start by Disabling all the characters and starting with three world maps and all DLC Content to Date disabled and new thread started. (DLC DCNVPython) "On a Tangent" A World of snakes and rumors of dragons .

  31. لم تزبط معانا 🤦🏻‍♂️

  32. Hi. Thanks for your time and efforts in making these tutorials for creating terminal games with Python and blessed. Unfortunately neither of your snake variations run in my Windows 10 "terminal" (command prompt) with Python 3.10.7. When I run the "you're the food" variation, immediately upon pressing an arrow key on the keyboard, I get "woah you won!! how did you do it?!" without seeing any of the "graphics" (actually saw nothing) on screen or playing at all. With your "standard" snake game, upon starting it and pressing an arrow key, I get:

    score: 1 – speed: 3.2
    Traceback (most recent call last):
    File "C:Usersuser1codingpycsdojosnake-terminal-blessed.py", line 91, in <module>
    heading = world[head[0]][head[1]]
    IndexError: list index out of range

    Any ideas about what might be causing these problems and if/how I could try to fix them? And… would you consider sharing your curses version of the snake game, so new Python learners like me could see how the code differs between using curses vs blessed?

    Edit: Apparently my Windows 10 command prompt can not display the unicode characters you used in the code to display the borders, snake and food… so it just displays nothing and gets confused. I simply replaced the special characters with regular ASCII characters in your variables BORDER = '#'

    BODY = 'O'

    SPACE = ' '

    APPLE = '*'

    and it works… then I tried my luck in replacing the BORDER character with a unicode block character 'u2593' and that also works fine. So I will experiment more with which characters Windows 10 can and can not display in the command line, to "upgrade" the "graphics" somewhat from plain ASCII 😀

Leave a Reply

Your email address will not be published.