Skip to content
← Back to Community
snake game... but you're the food 🍎
Profile icon
h
has Hacker Plan
ykdojo

So following my previous attempt at making a snake game on terminal with Python, I decided to make another snake game... where you're the food lol

So control the 🍎 and don't get eaten!

1

2

3

It's easy to die in this game, but it's actually possible to beat the snake and let it kill itself... See if you can do it 🐍

Voters
Profile icon
malo12750
Profile icon
MaryamMohamed16
Profile icon
zacf345743
Profile icon
MatthewArbour
Profile icon
victor1bert14
Profile icon
GeorgeLongoria
Profile icon
MrCeuz
Profile icon
ShrutiAgarwal11
Profile icon
TanvirAhmed32
Profile icon
giov4s1m
Comments
hotnewtop
Profile icon
glitchish

@ykdojo

THE SNEKS SO MUCH FASTER THAN MEEEEEEEEEEEEEEEEEEEE

nice game tho lol, i dont make any many terminal games, so this is kewl

Profile icon
ykdojo

@CodingRedpanda Thanks! I actually just made it a bit slower

Profile icon
glitchish

@ykdojo finnally lol
image

Profile icon
peternielsen112

@CodingRedpanda just spammm the arrows

Profile icon
FlaminHotValdez

WHY IS IT SO FAST AAAAAAAAAAAAH And also why can't you make the food behave like a snake too-when you press an arrow you keep going in that direction. My left hand is getting sore from spamming WASD

Profile icon
G0RG3

@FlaminHotValdez ye. @ykdojo like plz make the food invis for the snek. That would help. A lot

Profile icon
[deleted]

@YashasShah I made the food invisible, but the snake still follows you

Profile icon
BuurmenTennus
Profile icon
[deleted]

@BuurmenTennus instead of this "APPLE = '🍎'", I did this, "APPLE = '🍎'"

Profile icon
BuurmenTennus

@LeShuriken what line?

Profile icon
[deleted]
Profile icon
RhinoRunner

The intensity is real

Profile icon
LegendaryWolf

I AM GOD IN IN THIS GAME -

image

Profile icon
ch1ck3n

image

snek

Profile icon
ProCatGuy

like me

Profile icon
BuurmenTennus

@ch1ck3n where are you?

Profile icon
ch1ck3n

@BuurmenTennus i don't know

Profile icon
KhShahid

also me hehehe @AndrewMarkarian

Profile icon
LegendaryWolf

Hi CS DOJo! yk. Im a fan of your youtube channel :)

Profile icon
ykdojo

@LegendaryWolf Hi! Thank you :)

Profile icon
LegendaryWolf

ya really YK? if yes I subbed :) If you r real CS DOJO then record a vid about this and post it. My YT username is "I am DaKsHeSh". I'll be commenting once you post that :)

Profile icon
ykdojo

@LegendaryWolf I’m actually thinking about doing that!

Profile icon
JaveMaster

Wow, this showes me how much I can do here

Profile icon
[deleted]

Really cool game! I love how you took a simple game-like snake- and flipped it upside down!

Profile icon
PikachuB2005

Screenshot 2021-03-04 at 8.43.28 AM

Profile icon
LegendaryWolf

Your screen says you use mac...

Profile icon
PikachuB2005
Profile icon
LegendaryWolf

Just guessing...

Profile icon
PikachuB2005

I'm on a chromebook

Profile icon
PikachuB2005

why does it matter anyway -_-

Profile icon
[deleted]

@BrandenBentley πŸ€·β€β™‚οΈ Idk

Profile icon
RahulChoubey1

I can't win because me a thicc noob :(

Profile icon
Whippingdot

WHY CAN'T YOU RUN FASTER THAN THE SNAKE AAAAAAAA

Profile icon
ykdojo

@Whippingdot haha I think you need to press your keys pretty fast, but feel free to tweak with the config variables too

Profile icon
Whippingdot

i am trash at coding don't make fun of me lul @ykdojo

Profile icon
LegendaryWolf

I AM GOD

image

Profile icon
ykdojo

@Whippingdot I just made it a bit slower!

Profile icon
Whippingdot

THANK YOU @ykdojo

Profile icon
[deleted]
Profile icon
InvisibleOne

Cool game

Profile icon
zplusfour

THAT'S CS DOJO OMG

Profile icon
KhShahid

finally but i thinked it is too hard than i found aa trick and i won

image

Profile icon
phazrlazr

the snake touched its tail but didn't die this is a scam

Profile icon
patelr

I love it! it is the most amazing game I have every seen yet! πŸ˜ƒ

Profile icon
FullKnight51

image

Profile icon
FullKnight51
Profile icon
AlexanderGeorge

image
fun

Profile icon
IroncladDev

I got 422 and the snake was size 26. Great job! The AI is amazing!

Profile icon
ykdojo

@LeviathanCoding Thank you!

Profile icon
lolthegood

nice

Profile icon
FloCal35

Dude, this is awesome

Profile icon
Brendan23

@ykdojo can you edit it so that when you get eaten the snake actually goes on top of the apple? this is what it is like right now.

snakk

Profile icon
ykdojo

@Brendan23 okay I’ll fix it maybe in a few hours! Too bad there’s no way for you to send a pull request (I don’t think there is?)

Profile icon
ykdojo

@Brendan23 done :)

Profile icon
Brendan23

@ykdojo nice!

Profile icon
ch1ck3n

what the heck

image

Profile icon
GaryBritton

Consider adding a space. (SPACE = ' ') There are now three spaces. This fix is for repl.it users

Profile icon
Ravost

image
is there a fix for this?

Profile icon
HeatherPelz

Thanks! Love your video on this btw ;)

Profile icon
HebeDong

This is unfair!

Profile icon
HebeDong

It's loading too slow!!!

Profile icon
ahmedo123454

-_0
Screenshot 2021-05-11 at 3.56.12 PM Yeah who

Profile icon
ahmedo123454

Screenshot 2021-05-10 at 11.29.18 PM WHEN YOU DIE IN 1 SECOND ;((( I GET ONE POINT ONE STAR :((((