How to Win Snake: The UNKILLABLE Snake AI

How to Win Snake: The UNKILLABLE Snake AI

AlphaPhoenix

4 года назад

2,210,451 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@piggywu
@piggywu - 13.09.2023 01:53

Why does he remind me of Hiccup

Ответить
@RUNAHAH
@RUNAHAH - 05.09.2023 16:01

ah yes, THE OF GRID.

Ответить
@ChuckSploder
@ChuckSploder - 29.08.2023 01:20

You can use flood fill and a time-weightmap to make it be able to predict how it can dodge its tail.

Use flood fill to make a weightmap of how many steps it would take to reach a given location, and if the step count at the index of that weightmap during the Hamiltonian search is greater than the snake segment's distance to its tail at that location, that location will be available to the Hamiltonian search as a clear spot.

Idk if that made any sense, but if it did, I think it'd be a better step optimization than "Applefear Mode".

Ответить
@bormisha
@bormisha - 26.08.2023 22:36

It's a great achievement, thanks for sharing! How about making a Mine Sweeper AI?

Ответить
@skiptoacceptancemdarlin
@skiptoacceptancemdarlin - 25.08.2023 07:14

autism + adderall =

Ответить
@controllermc7282
@controllermc7282 - 22.08.2023 01:06

couldn't you use a similar code to what a mouse race robot uses the snake goes the nearest route to the apple if the snakes in the way do the next shortest way a bit harder cause you have to think like 4 apples Infront

Ответить
@daboffey
@daboffey - 19.08.2023 13:28

Can the algorithm be improved by relaxing the necessity of a Hamiltonian cycle, and only insisting that if part of the board gets cut off, the snake has enough time to escape from an area.

Another thing I noticed, when going straight for an apple that is not horizontally or vertically aligned, it would seem that a possible optimisation could be made by minimising the area on one side.

Ответить
@beaverbuoy3011
@beaverbuoy3011 - 19.08.2023 06:45

:D

Ответить
@abocwsg2328
@abocwsg2328 - 16.08.2023 16:45

The of grid

Ответить
@thebreads4334
@thebreads4334 - 14.08.2023 03:35

Hamilton is the best. Oh, uh, I mean, Hamilton-ion or whatever.

Ответить
@marshallmykietyshyn4973
@marshallmykietyshyn4973 - 13.08.2023 15:11

The most impressive thing about this video is that you're using Matlab and not going insane

Ответить
@knampf9779
@knampf9779 - 13.08.2023 02:28

Thanks for showing this. Now I can implement it in my professional snake gaming career.

Ответить
@arrowkartik5309
@arrowkartik5309 - 08.08.2023 20:41

Didnt undertsood a thing , yet loved it

Ответить
@eliekurtz
@eliekurtz - 07.08.2023 22:53

Unreal how much thought and time went into this - and for such a frivolous matter

Ответить
@mikekilkelly2138
@mikekilkelly2138 - 28.07.2023 07:35

snake was what people did to kill time in 2001 before phones could surf the web

Ответить
@steves5476
@steves5476 - 28.07.2023 04:15

I wonder if it can be improved by giving it a planning horizon whereby it can make any move it wants, so long as a hamiltonian path is possible within the next N steps after making that move.

Ответить
@smellysoysauce
@smellysoysauce - 25.07.2023 11:38

I would have loved to see the recording of the best game it played

Ответить
@nangld
@nangld - 20.07.2023 20:45

Could make a nice video game boss, where player tries to get out of the snake's path.

Ответить
@jovi_al
@jovi_al - 18.07.2023 09:17

Has anyone ever told you you sound like Mark Rober? Great video by the way!

Ответить
@petterlarsson7257
@petterlarsson7257 - 17.07.2023 21:20

"it could just go "zzzt zzzt" or even "z z z z z z z" but instead it has to go you know BLREHHER"

Ответить
@Meowsciles
@Meowsciles - 17.07.2023 03:43

You sound like mark rover or is it just me

Ответить
@Waffles3546
@Waffles3546 - 09.07.2023 18:22

You sound exactly like Mark Rober

Ответить
@loganmalcolm2193
@loganmalcolm2193 - 08.07.2023 14:54

this guy sounds like mark rover

Ответить
@LiEnby
@LiEnby - 07.07.2023 12:20

P=NP

Ответить
@jackhazardous4008
@jackhazardous4008 - 03.07.2023 23:56

The snake is not unintelligent, it always has a plan. You just want it to speedrun Snake

Ответить
@brandytomlinson2315
@brandytomlinson2315 - 03.07.2023 19:34

I played that game till I wore out that’s all us oldies was content with !

Ответить
@intellicademapping
@intellicademapping - 27.06.2023 15:41

THOABRGG

Ответить
@NotbinhVN
@NotbinhVN - 26.06.2023 12:35

Why does he sound like mark rober

Ответить
@roiburshtein852
@roiburshtein852 - 19.06.2023 14:17

What about a Hilbert curve for a 2^n×2^n

Ответить
@Cyril0C
@Cyril0C - 08.06.2023 04:45

I loved learning code on MathLab, I coded a sound pitch detection algorithm. It is really not efficient. I think your renders could have taken 10 minutes in c++, even python instead of 6 hours on ML ;)....
Very enjoyable video, thanks

Ответить
@linuxrant
@linuxrant - 06.06.2023 15:34

now, do that on hex grid... :)

Ответить
@zigge4531
@zigge4531 - 06.06.2023 13:49

it whot proboly bi fster to först run a algoritom and hafe waje trov so swetses it the algoritom automaticaly when neded

Ответить
@VPshandlewasstolen
@VPshandlewasstolen - 03.06.2023 14:49

slow

Ответить
@phuti5875
@phuti5875 - 28.05.2023 23:25

I don't know if prophecy/coincidences are real but I strongly felt that someone close to me is a "snake" an hour or so ago only to find this video in the recommended

Ответить
@rownrown
@rownrown - 28.05.2023 13:18

Well done on taking something so arcane seeming and making it accessible and interesting. You made me appreciate all the thinking, hard work and collaboration between people that goes into these ai programs

Ответить
@Qu4il
@Qu4il - 27.05.2023 16:33

you sound similar to mark rober

Ответить
@Trizzer89
@Trizzer89 - 26.05.2023 10:26

Do you realy need AI. just snake back and forth leaving the side column open to allow you to return

Ответить
@nihalsaini2067
@nihalsaini2067 - 25.05.2023 21:32

He sounds like mark rober

Ответить
@Ikxi
@Ikxi - 25.05.2023 20:52

GREAT

Ответить
@oneaboveall3735
@oneaboveall3735 - 24.05.2023 01:30

Do ppl really code in matlab?

Ответить
@MagnusMegamind
@MagnusMegamind - 23.05.2023 11:28

my snake won in 39k moves

Ответить
@camerg
@camerg - 23.05.2023 02:25

Bro sounds like Mark Rober… 😐

Ответить
@isaiahwaingrow808
@isaiahwaingrow808 - 22.05.2023 19:39

i would create an ai that finds the move that gets it closest to the apple while creating the least amount of failure points and always making sure it can get to every square that is safe and not filled in

Ответить
@Recorpse
@Recorpse - 22.05.2023 13:49

I've won a game of snake this without even knowing it was an actual thing

Ответить
@yashaneelmaathur6974
@yashaneelmaathur6974 - 21.05.2023 15:40

Just use supercomputers to make it go exponentially faster

Ответить