AI Learns to play the Worlds Hardest Game

Share this video on

What's Hot

What's New

Top Grossing

Top of the Chart

Recommend

Code Bullet : Hey Guys Its not more levels but it is the next best thing https://code-bullet.github.io/WorldsHardestGameAI/WHG/

sstream17 : 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.

Gerbbzz : All you have to code is If “redRectangle” touch “blueCircle” Then {don’t}

V5 In : 2:43 Battle of Stalingrad 1942 Colorised

Bozocow : The fact that he remakes the game in like 4 seconds tells us a lot about the original.

Ayush A. : That's level 1..... Try level 50

VengfulDeathCow : It didn't learn the game it learned a pattern of moves that lead to it beating the level... It has no idea how or why it was successful, it was more just process of elimination on what moves were bad... Edit: lots of people are saying that this is a form of learning, and I have to disagree. If you want to be picky sure, the bot learned that level, but it did so in a way that doesn't actually let it gain any information other than how to beat level 1. If we translate this to a parallel example of a series of multiple choice questions (at each frame the player can move up, down, left, right and the question has 4 answers) we can prove it. If I asked you what the answer to question 1 is without telling you the question or answers, you'd get it 1/4 of the time. We could proceed through the test and start over each time you got one wrong, you'd eventually Ace the test. Did you learn the material? No, you eventually guess & checked your way to the end and the only thing you learned was a string of letters. If anyone changed the order of the test or switched the answers around you'd be back at step 1, equivalent to a new level of the game. It would be easier and more efficient for someone who knew the game to beat the level and record their exact keystrokes, then upload that pattern to the bot and say they taught the bot how to beat that level. Same as someone who knew the material of the exam to just do the test and then have you memorize the answer key. Tl;Dr - bot learned the level, not the game. At the very least the title is misleading. AI learns to beat level from worlds hardest game is much more accurate, the AI did not come close to learning to play the game.

Rohit Shreenivas : I bet the program is just a bunch of "if{}" and "else if{}" loops. That's what AI is all about anyway...

KOBKED-X : kill it now, before it breeds...or programs an offspring of any kind!

Damian Reloaded : Cool! You need to randomize the balls start point and speed

Miguel Navarrete : The machines they're learning... and soon they will rise...

Venkatesh G : AI learns to code and develop more AI.

LxrdVirus : i got first lvl 2nd try lol

Polish Jerry : Why you using Scratch

Rami Awar : For anyone wondering what the fitness function is : ------------------------------------------------------ calculateFitness() { if (this.reachedGoal) {//if the dot reached the goal then the fitness is based on the amount of steps it took to get there this.fitness = 1.0/16.0 + 10000.0/(this.brain.step * this.brain.step); } else {//if the dot didn't reach the goal then the fitness is based on how close it is to the goal var estimatedDistance = 0.0;//the estimated distance of the path from the player to the goal for (var i = this.nodes.length-1; i>=0; i--) { if (!this.nodes[i].reached) { estimatedDistance = this.nodes[i].distToFinish; estimatedDistance += dist(this.pos.x, this.pos.y, this.nodes[i].pos.x, this.nodes[i].pos.y); } } if (this.deathByDot) { estimatedDistance *= 0.9; } this.fitness = 1.0/(estimatedDistance * estimatedDistance); } this.fitness*=this.fitness; if(this.coin.taken){ this.fitness *=1.2; } ------------------------------------------------------

Nathan Reed : I remember I got stuck at that level at the beginning of the vid, back when I was in 6ty grade playing coolmath

Tom9358 : It didn't learn to avoid the dots, it just found a winning path.

Shashwat Chopra : Song at 2:10 please

Nightcat : First of all, this isn’t even the game. You poorly recreated it. For anyone who doesn’t believe me, look how slowly the blue dots move. Second of all, the AI doesn’t learn the game. You’re forcing it to learn just this level. How about you make an *actual* video next time? Too bad that ad revenue is way more important nowadays.

Ben Dover : 2:10 song name please bro

Nicholas Rytting : I really hope nobody actually thinks this is the Worlds hardest game. (I know it's the title, but some people are weird.)

Josh Butler : *H A Y O U ‘ R E P L A Y I N G O N S C R A T C H* The COOLEST monkeys in the jungle use coolmath.

TigerClaw! : When the Title said "AI learnst to play the worlds hardest game" i thought you meant Kizuna AI lol

NiceShinyStars : You know it's not called an AI right? An AI is something entirely different...

Gliderous : It's...IT'S LEARNING

Artymis Gryphon : They're like people, experimenting to see what works and then improving on that to accomplish their goal!

PulseFire Caitlyn : When the "bot learns making youtube vids"? Edit: wow, didnt expect much love on this comment <3

Siegfried Siegfried : 2:10 WHAT IS THE SONG?

migow :D : HELL YEAH !!!!!!!!!! (With Code Bullet Dabbing xD)

Carry Sports : first lvl 2nd try, hardest Game. Kappa

The Stationery Draw : I cant belive my eyes last time i saw code bullet he ha maybe 300 subs but now, and that was like 3 moths ago

GX : Now, bring that bad boy to dark souls

Benjamin Whelan : Song at 4:40?

joshyextra : let me get just one more *beep*

SirRandom : But can it beat Crysis?

l555444333222 L5K : Let's*

The World's Hardest Game : Hey Code Bullet, I'm the developer that made this game. Thanks a lot for the awesome video, really enjoyed it!! :)

KUNAL SHAW : Noobs

Jon Schneringer : mr dot i dont feel so good

Scott McGaming : What program did you use to code this?

Osse Elite : Lvl 2

- Nathun : Isn’t there more than one level?

Gurdev : Ai is going to takeover

Rocket Square : MOREEEEEEEEEEEEE!

Big Black Clock : game looks easy.. waste of time

Gooberus Goober : problem this is level one there are 30 levels xD you should try to let them beat the hardest level i think 29

Sergio Franco : I WANNA SEE ALL LEVELS!!

nfk Veterana : 5:03 name of da song?

Jebrone Love Kitten : I'm not liking how machine learning is working any more. it was nice concept in the beginning. But the more you realize how it works the more it becomes apparent, it is just randomly hitting buttons until it accomplishes something through hundreds of trial and error. I'm hoping this evolves more into some how retaining this information and using it to solve more solutions without starting from the beginning again.

B S : How can I learn to do this? (I have zero coding experience).