Share your repls and programming experiences

← Back to all posts
snake game... but you're the food 🍎
h
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!

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
JohnathanColon
HaxSupreme
pmooreh
Donut4547
strange-boiboi
lolipop2
purchases
URK19CS1040
KyleWilliams17
ymn-nd-wdyaa-nd
Comments
hotnewtop
iocoder

@ykdojo

THE SNEKS SO MUCH FASTER THAN MEEEEEEEEEEEEEEEEEEEE

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

ykdojo

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

iocoder

@ykdojo finnally lol

peternielsen112

@CodingRedpanda just spammm the arrows

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

G0RG3

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

[deleted]

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

BuurmenTennus
[deleted]

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

BuurmenTennus

@LeShuriken what line?

RhinoRunner

The intensity is real

LegendaryWolf

I AM GOD IN IN THIS GAME -

ch1ck3n

snek

AndrewMarkarian

like me

BuurmenTennus

@ch1ck3n where are you?

ch1ck3n

@BuurmenTennus i don't know

KhShahid

also me hehehe @AndrewMarkarian

LegendaryWolf

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

ykdojo

@LegendaryWolf Hi! Thank you :)

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 :)

ykdojo

@LegendaryWolf I’m actually thinking about doing that!

JaveMaster

Wow, this showes me how much I can do here

[deleted]

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

PikachuB2005

LegendaryWolf

Your screen says you use mac...

PikachuB2005
LegendaryWolf

Just guessing...

PikachuB2005

I'm on a chromebook

PikachuB2005

why does it matter anyway -_-

[deleted]

@BrandenBentley 🤷‍♂️ Idk

RahulChoubey1

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

Whippingdot

WHY CAN'T YOU RUN FASTER THAN THE SNAKE AAAAAAAA

ykdojo

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

Whippingdot

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

LegendaryWolf

I AM GOD

ykdojo

@Whippingdot I just made it a bit slower!

Whippingdot

THANK YOU @ykdojo

InvisibleOne

Cool game

zplusfour

THAT'S CS DOJO OMG

KhShahid

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

phazrlazr

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

patelr

I love it! it is the most amazing game I have every seen yet! 😃

FullKnight51

FullKnight51
AlexanderGeorge


fun

LeviathanCoding

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

ykdojo

@LeviathanCoding Thank you!

lolthegood

nice

FloCal35

Dude, this is awesome

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.

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?)

ykdojo

@Brendan23 done :)

Brendan23

@ykdojo nice!

ch1ck3n

what the heck

GaryBritton

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

Ravost


is there a fix for this?

HeatherPelz

Thanks! Love your video on this btw ;)

HebeDong

This is unfair!

HebeDong

It's loading too slow!!!

ahmedo123454

-_0
Yeah who

ahmedo123454

WHEN YOU DIE IN 1 SECOND ;((( I GET ONE POINT ONE STAR :((((