Share your repls and programming experiences

← Back to all posts
SNEK AI
h
Coder100 (17479)

Snek 2: Become Human

In the previous post, you were the snake. However, have you wondered where those trees came from? What malevolent creature planted those trees with the sole purpose of killing you? In the sequel, you become the creature: planting trees in peoples' way!

About

@DynamicSquid told me that I should make a snake AI, so with delay (because I switched keyboard layouts -- namely Dvorak -- and took a break), here it comes!
Also, I wanted to experiment with something I haven't actually used a lot: NavMeshAgent.

How to play

Use WASD or Arrow Keys to move.
Use left click to place a tree. You have a maximum of 30 trees, so place them in strategic spots!
Use right click to delete a tree (make sure your mouse is on the tree).

Screenshots

AI SNEK


Tree

Updates

Many bugs should now be fixed!

  • The snake can now finally die!

Closing

Have a good day! Hope you enjoy the game!

Comments
hotnewtop
LukeWright (278)

bruh the snake is phasing thru the trees

RayhanADev (2066)

Poifect! ٩( ᐛ )و
Also hai m8 been a while since i was around huh (⌐■_■)

FlaminHotValdez (611)

@RayhanADev It's been a while since we've seen the furret!

FlaminHotValdez (611)

@Coder100 He is THE pog boi on repl.it.

Oh wait let me rephrase that.

The

POG

boi on repl.it.

TsunamiOrSumth (555)

@RayhanADev hellow fren welcome back ٩( ᐛ )و

RayhanADev (2066)

@FlaminHotValdez @Coder100
awww (⁄ ⁄>⁄ ▽ ⁄<⁄ ⁄)

CyberHacker101 (118)

Hmmmm YOU ARE BRITISH OH NONONONON @RayhanADev

KobeFF (1270)

@Coder100 Even BETTER than the POGGIEST POG game in the history of POG games. It makes people think it's even POGGIER than the POGGIEST form of POG. Which means that no mtter how POG it is, it will always be POGGIER than the POG games, so it is the POGGIEST.

Whippingdot (610)

Am I the first winner?


Immidiately 😁😁

Trex10 (7)

Uh, I don't have a picture, but I was off the grass area but going to it and a bunch of the snake yellow circles zoomed onto its tail from somewhere.

Coder100 (17479)

@Trex10 uhhh
thanks for reporting it!

GeumjuKim (18)

...

CRIES

WHY SNEK

SO MANY HOURs
WHYYYYYYYYY

Baconman321 (1093)

Man I wish I could switch keyboard layouts!

However, I think I type fast enough on qwerty.

Funny enough, I don't use all of my fingers, and I have been recorded to type up to 150 wpm!

My keyboard I'm using rn is pretty sticky, so I can't type as fast unfortunately.

Oh well, will have to do for now.

Also, cool game!

codingmaster123 (16)

@Baconman321 thats fast, my record is 87 and I average around 70 and i only use 4 fingers.

tussiez (1565)

@tussiez Awesome! Nice cubemap :>

Coder100 (17479)

ikr
also thanks, i found it myself! @tussiez

IntellectualGuy (783)

You win snake I give up

Coder100 (17479)

lmao
ah yes casting the island into the sea @IntellectualGuy

WILLIAMBAEWER (102)

can the snek even die?

WILLIAMBAEWER (102)

the snek doesnt get longer after a certain point

Coder100 (17479)

apparantly not, unfortunately @WILLIAMBAEWER

CyberHacker101 (118)

can ya make the viewer a little faster?

CyberHacker101 (118)

also some of the buttons don't work

CyberHacker101 (118)

the buttons like how to play stuf like that and after you win the button to return to menu @Coder100

CyberHacker101 (118)

every time you make a new post it just is better than the last one UPDOOT TIME

TheDragonCode (17)

The millionaire question: Are we huge or are the trees just really small? The snakes may or may not have grown too...

FlaminHotValdez (611)

2 people have done pog. None with all caps though. Here it is:

POG

darkdarcool (100)


This took me like 10 minutes to do.

Not sure it was worth it
darkdarcool (100)

@Coder100
I feel like I could have been working on something important

Coder100 (17479)

no, beating an ai is important @darkdarcool

darkdarcool (100)

@Coder100
Hmm, maybe you're right. Me eating breakfast and living isn't as important as beating AI.

Trex10 (7)

@darkdarcool
I somehow beat it in like < 1min

BD103 (136)

Fun! (Though it's hard for people using laptop. Maybe add arrow key functionality, or raise the sensitivity?)

IntellectualGuy (783)

Pog

Snake go like brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

LingWu1 (90)

What r u even supposed to do

Coder100 (17479)

watch as a fricking ai snake outsmarts you :( @LingWu1

LingWu1 (90)

lol this is fun. Great job @Coder100

DylanStein1 (4)

what are we supposed to do

Coder100 (17479)

watch as a literal snake outsmart you lol @DylanStein1

DylanStein1 (4)

dat snake be phasing throught them walls and hacking though @Coder100

Coder100 (17479)

yeah, I am not quite sure why it does that @DylanStein1