Share your repls and programming experiences

← Back to all posts
snake game... but you're the food 🍎
h
ykdojo (290)

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 🐍

Comments
hotnewtop
iocoder (164)

@ykdojo

THE SNEKS SO MUCH FASTER THAN MEEEEEEEEEEEEEEEEEEEE

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

ykdojo (290)

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

FlaminHotValdez (712)

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 (64)

@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

[deleted]

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

RhinoRunner (864)

The intensity is real

LegendaryWolf (574)

I AM GOD IN IN THIS GAME -

LegendaryWolf (574)

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

LegendaryWolf (574)

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 (290)

@LegendaryWolf I’m actually thinking about doing that!

JaveMaster (2)

Wow, this showes me how much I can do here

NoThisIsntHenry (2)

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

LegendaryWolf (574)

Your screen says you use mac...

PikachuB2005 (12)

why does it matter anyway -_-

[deleted]

@BrandenBentley 🤷‍♂️ Idk

RahulChoubey1 (183)

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

Whippingdot (678)

WHY CAN'T YOU RUN FASTER THAN THE SNAKE AAAAAAAA

ykdojo (290)

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

Whippingdot (678)

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

ykdojo (290)

@Whippingdot I just made it a bit slower!

zplusfour (916)

THAT'S CS DOJO OMG

KhShahid (13)

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

phazrlazr (38)

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

patelr (4)

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

LeviathanCoding (1599)

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

FloCal35 (670)

Dude, this is awesome

Brendan23 (166)

@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 (290)

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

ahmedo123454 (16)

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

ahmedo123454 (16)

LOLLOLLOLLOLLOLLOLLOLLOL*

CaidenHolst (0)

score 496, size 30. simple strat. just go around the borders nonstop until the snake becomes too long

FlaminHotValdez (712)

me: hang on a second THAT'S CS DOJO WAAAaaAAAaaaaAAA

ShanelZheng (0)

AGH THE SNAKE GOT SMARTER

ahmedo123454 (16)

but how did it get like that?