AI Learns to play the Worlds Hardest Game
Vložit
- čas přidán 12. 07. 2018
- If it wins does that make it the worlds best AI?
NEXT LEVEL: • AI learns to play the ...
Run the AI in your browser code-bullet.github.io/WorldsH...
Check out my tutorial on genetic algorithm
• How AIs learn part 2 |...
Follow me on twitter
/ code_bullet
Become a patreon to support my future content
/ codebullet
Check out my Discord server
/ discord
Hey Guys
Its not more levels but it is the next best thing
code-bullet.github.io/WorldsHardestGameAI/WHG/
Nice work dude!
That was Dope !
Neato
Hey make a Ai that can play a game called spore that would be like the coolest video ever
czcams.com/video/je6MwM75CCQ/video.html
Holy shit, settle down guys I get it. I’ll do more levels.
Yay!
Code Bullet lol my first comment on CZcams in a billion years.... make them learn at least the last level
Code Bullet If you're just making it evolve to find a certain set of directions to complete the level will the second level not be like starting completely from scratch? Could you perhaps try to make an AI that can solve multiple different levels?
Also if possible try to make it as efficient as your minesweeper AI.
I have no clue if this would work, but the ai with "free will" to run around without just random movements, ah who am I kidding he probably already tried or know it wouldn't work.
“Most players have figured out how to get out of the starting area”
*Me, being fully represented by the cubes still ramming into the walls:*
Those blocks that are still hitting the wall are my spirit animal
Lamo
Oof
Lol
My family would legitimately just sit there and wait
I feel like they haven't really learnt the rules of the game, they've just learnt to follow that exact path
They learned the exact path to victory
The AI simply "thinks": "ok, If I go up I die, but if I go right I survive as I saw in the past generations. What now?"
It tries a move and adds the result (move and its consequences) for the next gen
I think that's where humans surpass AI in the fact that we know how to learn, how to critically think and extrapolate concepts outside of ourselves to other things and learn from that type of thinking, while a basic AI only knows how to observe and induct information to make a path to victory without observing the major implications of what they're doing. I think a more advanced AI could learn to see outside of itself though.
@@okay2037 Yeah and more advanced AI could avoid the dots and move away when they are going to hit
@@suomusintti i feel like you could give the ai the ability to "see" the dots and know their positions. the only problem might be that if you give it that information, a program doesn't have the delayed reaction time and imperfect judgement of a human so it might be too easy once it learns the rules. Idk how ai works really but I feel like this is super simplified
Did-
DID YOU PLAY THE WORLDS HARDEST GAME ON *_SCRATCH?_*
IKR
Also I
Squishmellow 3 YEA I WAS ABOUT TO SAY THAT XD
M3m3 Qu33n yea me too
I thinks
All you have to code is
If “redRectangle” touch “blueCircle”
Then {don’t}
Lmaooo
Gerbbzz actually we see at the begining of the video that this game was a made on a website called scratch ( which is what i use to make allnof my games) and on scratch there are no lines of code but rather blocks. so no you dont.
thats not AI tho, your saying to artificially input commands...., however, in this case the system registers errors and learns from them..essentially getting better each time which is like the human brain....
Just telling you that it was an example he used. He CAN actually code and he does. In his Stevie the dinosaur video you can see him coding!
Attila Vinklmann ok whatevr
When you can't beat a level so you recreate the whole level and add AI to beat it for you. Nailed it.
You should create AI to play Geometry dash
Hell yeah he should
GENIUS
An AI that could beat zodiac XD
no it's to easy, cause each level is the same and you just have to tap
Léo think again, it gets a lot harder than just that, I have been playing for 3 years and I got quite good so I would know
Code bullet: can't get past the first level
Everyone who grinded the game for hours: pathetic
Can fully relate. The second level took even more hours
It isn't that hard took me 15 minutes to get past level 1
About 5 minutes I was just fooling around next 5 I planned how to finish and the rest I finished the plan (for level 1)
Finished the game under 100 deaths
@@jessemoss6056 cap
@@duceysanem it's not tho
Look for the pattern's of the levels
@@jessemoss6056 true
AI learns to code and develop more AI.
Venkatesh G yes
Venkatesh G yes
lel
How about no
yeah... that's a NO
It didn't really learn to play the game though, it just learned an exact path to beat that exact one level.
Well, in theory, that is one of the basics of learning; patterns and repetition. But I get what you mean.
@@vegavega5344 Not really. In this case you could look at it this way:
dude claims his bot can do addition. Then shows his work... And his AI does literally just three fucking additions he taught it and can do nothing else. Kinda scuffed really.
@@krzysztofpiasek5682 Like I said, I get what he ment: Build another room with same obstacles in a different order and the AI needs to learn it all again because it isn't really learning, it's trial and error, step by step-- the AI knows exactly where to move BECAUSE of a pattern build on trial and error-- It's not intelligence or learning, but it's SIMULATED intelligence and learning, built on the core principles of learning-- Repetition and patterns.
@@vegavega5344 No, it needs to learn everything again because it knows fuck all about the world. It's not learning, just like you yourself said. But it could learn. Look at AI that fought against top Dota 2 players, that AI has true learning capabilities outside of being retarded roll a dice machine. Sure, at first it must rely on random moves, but in time it learns to react to enviroment.
Agree. This is like a speedrunner playing Mario 64 wall glitching to skip pass levels. A thinking being (AI or not) would learn the rules of the puzzle and avoid trying every corner. Take this game for example. If the wall has a crack and able to wall clip through. The early generations would rule that as "best" move and build future generation on wall clipping the top side. A thinking being would stay clear from all wall, understanding the rules of the game, and go through the dots. Gen 10 is still hitting TONS of walls here.
“The worlds hardest game” is actually on scratch. You can see by the flag and stop button
f u l l s c r e e n
its probably one of those websites that just pastes a minipage into their website
Algorithm:
if *red_player touch(blue)*
then *try again thx*
Ok but why would the dot move? It could just stay where it is
there are series of movement instructions for each dots, the best instruction will be inherited to next dots generation with little mutation to find if there are another best path probability for not to die
LOL!!
@@alfaalkaaf5335 It was just a joke m8
robot has no visual input
please make more levels! turn this into a series already!
edit 8 hours later: holy shit this got 1k likes? you guys are crazy.
DO IT
cuckoo head that would be great
Yasss
Needs all da levels plz also isn't there a second game in the series?
Agreed
I WANNA SEE ALL LEVELS!!
Sergio Franco truuuuuuuuuu
The problem with doing all levels is that the AI doesnt learn to play the game. The AI that can beat the first level cannot beat the second because its not designed for the second. You would have the take the program and essentially start over the incremental learning for each level.
Kevinofrepublic who cares!!
The point is for the AI to learn, hence the name of the video 'AI LEARNS to play the World's hardest game'. It would also take a lot of time and effort to create every single section.
Yaaas
1:04 “The design is pretty straight forward it’s just a bunch of squares.”
-Minecraft
laughs in door
Actually, cubes.
“let’s see if you can spot the problem”
**becomes dora**
Now, bring that bad boy to dark souls
i dont know about that, it would just die every other second, it wouldnt get to learn. or maybe it would just become the best player there is!
Yeah ai in dark souls try it
AI Learns to play Touhou......... Generation 93857237384 still on level 1.
F
U
C
K
Y
E
S
GX yeah but he has to program every game he uses
Adding the incremental learning was a neat trick to get around the players stuck in the start. Overall very neat but I agree with others, I'd like to see a video where the AI learns the rules of the game, not the path of a particular level. This would be more fun to watch with more levels going forward.
If there's some open source visual AI and you could perhaps direct it to anaylze why it died visually, or easier perhaps tell it blue dots = bad alongside death = bad and high distance to exit upon death = bad I think it could be possible. But frankly I know jack shit about AI coding.
Forty Six and Two, machine learning could work. You can feed it information about where it is on the screen and the position of the dots, and then it will produce an output for what direction to move. It could probably even use convolutional neural networks where it looks at an image of the game and figures all that stuff out by itself.
There are some open source machine learning libraries as well. I think tensorflow is a popular one.
AI can already play chess, go, mario, and old atari games. Obviously, we don't expect a 7min video to teach us all the intricacies of AlphaGo, but generalizing the AI to be able to handle rules (and figure out a way to win) would be awesome.
John Hunter just to clarify, what’s happening in this video is also machine learning - it sounds like what you’re describing is neural networks (of which the confusingly named deep learning normally falls into but also many other interesting approaches), which tend to use networks of simulated neurons as opposed to evolutionary algorithms like this one.
The two are combinable too - you can have evolutionary neural networks with back propagation (one might argue that’s what the human brain is an example of).
Camper Josh what why?
I love watching all the actors evolve over time, keep the best a different color, but would love to see the evolution of the entire set.
gotta love the "pffft doubt it" at the start its so funny
love the "just a little square which moves at the gentle speed of... WAY TOO F**KING SLOW" 1:30
{if going to die}
{dont}
pretty easy
Robertus That better be satire.
Xuvlar I don't know if you're being sarcastic or just a dumb b.s. on the internet
Ooooh someone’s salty
Suspicious Samuel oh then sry for the mistake
Dark Cat I didn't know 9 year olds could be on the internet
I would really like to see more levels, but I also want to see a neuroevolution approach to this. You would train it on the first 5 levels lets say, then start running it and see how well it can figure out levels it hasn't seen yet!
Goel great idea.
Thanks! He could even create is own levels that are ridiculously difficult, and see how far they can get!
+Shisha Einsatzkommando After watching the trailer, that looks like quite a game, good luck at even re-creating it!
I actually think an AI could complete it quite quickly, it is only difficult for humans because you need fast reactions, and precise movements, both of which an AI could perfectly obtain. Using a genetic algorithm like in this video would probably be the best for just one level, but to generalize the solution and complete the whole game would require a Neural Network, which would be more difficult but still possible.
That would be amazing, I love that game.
4:31 The Swarm of Red Dots with a green core looks like a boss
Me: HOW DID HE CODE THAT GAME
Me after 5 muinets: oh yea i forgot hes a programmer lol
Hey Code Bullet, I'm the developer that made this game. Thanks a lot for the awesome video, really enjoyed it!! :)
Wow! WHG 3, teaser 2 looks insane.
The World's Hardest Game please tell me how to be skilled
No I made it :)
I liked the game.
I BEAT YOUR GAME IN LESS THAN 1 MIN.
Love to see more levels!
what an intense episode o-o
thanks a lot for putting this video up :)
2:43 Battle of Stalingrad 1942 Colorised
Oh shit
Until I liked this, this comment had 69 like.
Shhhhhhiiittttttt doooog
@Arjun
MAYBE the red ones are the soviets.
MAYBE.
Wow i never knew this comment was getting notice by people
Well thanks guys
Me: There’s a second level though.
Code Bullet: What’s a level?
Watch til’ end
Bucket_head I can’t tell if this reply is a joke. :/
more levels please bullet, i love this stuff
I've played this game and I learnt how to beat the level easily from the 1st try by copying what your AI did and following exactly the same moves WOOOOOOOOOOOO.
Whats this game called mate?
@@ho-dg6zi world's hardest game
Try to get AI through all 30 levels, it could be a mini series or something
Shamwow The bullet wolf it is possible to get one instance of an AI to beat all levels, just like one human brain can beat all levels
Yea like Jordan said, there's a video where Jabtils (an Ai youtuber) creates "Forrest gump" to go through every maze he creates
There are 30 of these?!
@@JordanMetroidManiac
The difference is that the "Ai" starts every level knowing nothing. Any path it worked out in previous levels is useless in the following ones. A human can understand, generalize, and extrapolate the gained knowledge. Just like a human - not really.
See, this is not an actual "AI" that learns to react to input from the game's world, it's just a heuristic search function.
It learns nothing. It only memorizes a path.
Problem is I don't think ai even knows what an enemy is and that they should avoid it. Using that same ai on a different level would be catastrophic lmao.
Kevin Zhang Exactly. The AI is just learning a path through this specific maze and starting a second level would require starting from scratch.
That's where NEAT comes in
F1R3 Yeah, that would probably be useful right about now.
Despacito
Kevin Zhang 2
I got through the first level in 19 tries then got thought to the fourth level of that game & got tired of it. The first one was the hardest one though
The old saying : "I clicked on this youtube, you happy now" !!
The fact that he remakes the game in like 4 seconds tells us a lot about the original.
It tells us that it was such an ingenious design that he was able to polish it to the extreme to make it the simplest thing possible
Yes, flappy bird was reported to be created in just 2 days, people can speedrun to make the game in 10 minutes.
Yes.. It's 2018 dumbass
TTime685 calm down
Well, what's tic tac toe? Get three of either in a row.
Simple games can have plenty of entertainment value, and they're simple and quick so people return to them frequently.
WHY WOULD YOU DENY ME MY RIGHT TO SEE ALL OF THEM AT ONCE?????????????????????
Seagle kkkkkkkkkkkkkkkkk
Well, this is basically a square's orgy. Do you really want to watch it?
always
Itay Raviv it’ll do ( ͡° ͜ʖ ͡°)
Itay Raviv YEEEEEEEEEEES!
square's orgys a my biggest fetish!
This was awesome i want more levels please
Always love your videos
Do the players actually "See" anything, or are they just following the pattern that the best one got?
This AI probably couldn't go on to the second level and attempt to go through it with what it's learned on this level, could it?
XsaivierWolfe yup it could not do the second level at all, the solution given isn’t generalized
O V E R F I T T I N G
I guess memorization is a kind of AI, but not what I typically think of as learning.
You could say the AI was "programmed by evolution", it became perfect in the environment it was in but take it into a different one and it'll die a cruel death. As if you took a tiger into the desert.
Im pretty sure most of us would have a hard time living in some other Environment aswell
Problem is we only have 1 try ^^'
2:46" you go first"
"NO YOU GO FIRST"
"NO YOU GO FIRST"
"I'M NOT GOINF FIRST YOU GO"
😂😂
"most of the players have figured out how to get out of the STATING area"
Spelling errors: CHEK
2:06 - 4:24
Song called
Worse by jincheng zhang (instrumental) enjoy
can you get AI to beat the all 30 levels?
You could, but it would take a loooong time since the other levels are more complex and it would take many many more generations to get through them.
More levels pls!
too much is never enough. :ok_hand:
Bro you gotta make more of these
4:38 It's just like raiding area 51
Your next video should be an ai learning to play Tetris
LuckiestLlama I agree, yes
Great idea
Yes
Wow man this is an awesome idea.
(Tetris, flappy bird is stupid😒)
Itay Raviv yeah I’m gonna delete it 😂
Isn’t there more than one level?
- Nathuan No only one
There’s like 30 or some shit
Have you not played the game/level
*T H E R E C A N O N L Y B E O N E .*
6:30
this is so satisfying to watch, it's like a red slime moving along.
3:28 ok so at first I only got a glimpse of the words, so I thought incremental learning said internal screaming
When the "bot learns making youtube vids"?
Edit: wow, didnt expect much love on this comment
PulseFire Caitlyn that’s every one of his videos... duh.
Code bullet is an AI. Isnt it obvious?
Aezrith Ferova the AI is so evolved, that it generates a pristine voice as well :)
He is not a Person why do you think he doesnt show him
Have you seen Terminator?
A more accurate title for this video would be "AI learns optimal route for completing level 1 of the world's hardest game"
is it optimal?
Cocodufable Right, more like “learns one acceptable route”
Cocodufable, it is, at least, very close to the optimal solution since the AI had to get through with limited steps (which isn't an aspect of the actual game). That's why it kept trying to go straight at the top instead of dropping down to avoid the dot.
When they were all being shown at once, it looked like something out of Super Paper Mario.
So this guy created the game that i play on cool math when im board at school!?
uh, yeah?
Speeling Mitsake: chek
A board? Well, has anyone writed on you yet?
Aonther speeling mitsake: chek
@@michaelfrazee6990 im crying rn 😂
It's so good to get the "text bullet" back, btw 4:24 that was intentional right?
*_Stating_*
*They're* just leaving the stating area, what's wrong? Have you never been at a stating area? *There* people go nuts and start stating *their* opinions and arguments.
Dang i love this game. Used to play all the time in school when i should have been paying attention lol
SAMurai96 I beat it once when I was meant to be having a dt
I actually like watching the horde of mindless squares sprawling across the level, so if you do more levels, please keep em
I love your videos!
AI learns to play life
HitzCritz 👌
AI learns that no one can succesfully play life
HitzCritz life is overrated
Do you know who Marc Zuckerberg is
Ali’s are smarter then humans so I’m pretty sure they can beat it
AI robot learns to play geometry dash! Edit: WOW so many likes!
Yes finally some good ideas
dont bring the toxic gd community into here. Take it with a grain of salt and just accept that it would be a bad idea.
you guys would probably force him to release his code, copy it, compile it into some .exe and make a new verification hack. Ew
We won't. The few who are like this overpower the rest. The Impossible Game community (still somehow there) will demand another video at the impossible game at some point. It is still a bad idea tho lol cuz gd is weirdly coded and hard to make an AI for
fake account Offense taken
Just kidding the community is toxic as fuck in the wrong places and irradiated in the good places
YES
More levels? I want to see the whole bloody game!!
Very enjoyable to watch 👍
*_FIND THIS GAME ON C O O L MA T H_*
no find it on hackedarcadegames.com
@@zahidshabir4038 no don't play it on hacked, there is no collision detection.
There actually is a difference between the Original version of the game, and the Coolmath version of the game. No joke! The Coolmath version is more of a remake of the OG version.
@Cruz Yeah, coolmathgames. Coolmath is just a nickname for it.
OMG. I was just looking at my subscription and I wanted to watch a new vid from you, I watch a 10 min vid, AND SEE THIS VIDEO! YOU ALWAYS UPLOAD AT THE RIGHT TIME AND IS THE BEST! Keep up the good work
Also, I missed the old days of your channel. Watched a little after like 50K subs
Codebullet: Yay! Your so close!
Player:self-delete
I was head nodding through the video. Some of the tunes were banging.
Wow! My first time on this channel and by its simplicity, clarity and cheesy (but appropriate) music, this is by far the best I've seen since Turing. Subscribed!
Turn this into a series
Jacob May it is
Im gay
Wolfy's Adventures good for you
the crown official LOOOOLLLL
More levels please :)
Your AI went to the Prometheus School of Running Away From Things and had to unlearn everything it learned there to beat this level.
I thought it meant A.I. as in Artificial Intelligence as in the computer. But then i realized it was just some guy named Al.
same... pretty dissapointed but it's still cool
yee, such disappointment
Well, the title writes AI, the last letter being and "i" and not an "L".
woosh
damnit i lost my dignity
not that i had any in the first place but damnit
You stopped me from going to bed worth it
How did Code Bullet even come across scratch???
Also why not code the AI by remixing that game?
Because it's Scratch. It can't run dozens of complex AIs. Also, the Scratch version is glitchy, because... Well, because it's Scratch.
@@Pnod666 Scratch is trying its best. I never run into bugs.
@@Kalbr0shorts I do think Scratch is good. I was just saying that Scratch is better suited for simpler games. Meanwhile, this game is more complex, meaning it won't run as good.
@@Pnod666 I do agree that scratch isn't complex, but I don't think its bugged (very glitchy)
@@Kalbr0shorts Okay. Each to their own.
I love brilliant stuff, i love this stuff
OKay so the people saying that the "AI" didn't "learn" to play the game need to realize something VERY crucial. The game has no randomness to it. Every stage is on a set cycle. So saying that it didn't "learn" to avoid the dots is not true. It learned the coordinates on the field that equal a failed attempt. It did this in a very mechanical way. Humans learn linearly we see most of the possible results of a movement and rule those out without trying and opt for the most logically sound attempt next. Machines learn in vectors. They attempt EVERY possible combination of movements from their current position, then when they find the most optimal path, they move on to the next section and test again. That's why the earlier generations stayed in the starting box for so long.
LastKnight0727 so, we need even better AI
LastKnight0727 STOP RUINING THE FUN FUN RUINER
yeah not like humans at all, we learn pattern recognition... it'd take even a young human one single attempt to see that being in the path of a dot is game over, and all future attempts will involve at least trying to avoid dots... this just simply brute forces random directions and remembers paths that lasted longer.... not like a human at all
in that case, the title is wrong, as it says AI learns to play World's Hardest Game, rather than "AI Learns to play 1 level"
Even if its not as fluently as humans, machines can still learn to recognize patterns over subseqent generations. In this case, its impossible because the the person who made this didn't bother to make it aware of it's surroundings.
1:41 hmmmm I’m not sure mate, looks pretty good to me
4:22 You don't wanna hang out inside the "stating area", that's for sure~
MORE LEVELS PLEASE
This isn't learning the game, it's memorizing one level
Learning is kind of memorizing
they are same thing
+Vikas Rv He does not feed any relevant input to the algorithm. It's absolutely worthless. AI basically makes random moves in all directions and the only metric is whether it dies and how far it gets. That's NOT learning of the game.
The moment you change the level (lets say, we make the blue squares move vertically instead of horizontally) the entire thing goes to trash, because AI didn't learn how to spot and avoid blocks or walls; it only learnt how to randomly sneak past that one very specific set of obstacles.
You need to give the AI an ability to detect obstacles! So the output is based on some relevant input and not a completely random movement.
Camper Josh just want for the future where the AI will pretty much learn how to kill people
Wait*
This was awesome and I want to see more.
Also, I kind of like seeing the chaotic mess of AI's scrambling to evolve. Maybe keep the top 3, 5 or 10 to show how they differ?
Maybe the best, worst, and most average ones?
EDIT: By that I mean the top one, the bottom one, and the one right in the middle.
Meow? Meow. Yeah I know we not stupid
+UltraGaming, just clarifying so nobody misunderstands, no need to get annoyed due to that.
Meow? Meow. It’s fine, sorry xD
*AI learns to play the first level of the worlds hardest game on its 50th attempt
Imagine a game with a self-learning AI controlled swarm. Or in fact just a game with self-learning AI. Like the game ECHO but more.
4:20 Going to work in India and China
420
Danm, they let people get stoned on their way to work
Oh I get it
UltraGaming I’m quite lost
Narcotic India and China are the 2 most populated countries, and there are many people running to escape from the start area in that timeframe.
More levels! And text is still pretty cool :)
I like how the music syncs perfectly with the blue balls
Please do further levels
OOOH the good old days!
Edit: The good old days were not that good tbh AND MORE LEVELS
1. 'The *good* old days' implies that they were good
2. The videos where he didn't talk were good what are you talking about
3. MORE LEVELS
Funny ass video man! You're channel is such a breath of fresh air on this site! Finially something ACTUALLY INTERESTING, and inspired! I honestly wish you had more content to watch lol! I know you're projects take alot of effort and time though. So glad you got some new recording equipment because honestly I thought you were some old dude, turns out you're a young Aussie fellow who is passiante in his craft. Seriously well done; I can't wait for what's to come! Take care sir, and God bless.
Dana Newell why cant people learn the difference between your and you’re? It isn’t that hard.
Nodir Nigmonov lol if YOUR a fan of these channel, you shouldn't be fazed xD
Dana Newell you're*
I hope this is just bait.
This needs a sequel for the next level!
i got secondhand frustration from the bit at the start
I cant wait to see the next level ^^
The song and epicness of the ai learning reminded me of that awesome scene in skyline where the drones come in to nuke the aliens
Love the music
You know we wanna see more levels
Can you show us all of the boxes. Its not hard to follow. Its just very appealing to see the boxes move in unison
Imgur Man click the link in the description
Cool! You need to randomize the balls start point and speed
Do you ever watch while your AI tries to learn stuff and then scream like "IT'S ALIVE!!!!" bc it felt like it was alive
Im so excited! My school gets a 20 000€ robot and me and a handful of students get to programm it.