AI Learns How To Play The Chrome Dinosaur Game

  Рет қаралды 202,983

Tyler Mommsen

Tyler Mommsen

Ай бұрын

I coded an AI that learns to play the Chrome Dino Game.
Source Code: github.com/TylerMommsen/chrom...
Twitter: / tyler_mommsen
Patreon: / tylermommsen
Discord: / discord
• AI Learns How To Play ...
My Gear (affiliates):
Microphone: amzn.to/4b6Pv5x
Monitor: amzn.to/3xcf9bl
GPU: amzn.to/3VLNzek
CPU: amzn.to/3VW06fv
I get my music and sounds and all that stuff from Envato Elements
#ai #gamedev #artificialintelligence

Пікірлер: 299
@TylerMommsen
@TylerMommsen Ай бұрын
If you're interested in the source code here ya go github.com/TylerMommsen/chrome-dino-game-ai
@dreamlandskribbl
@dreamlandskribbl 17 күн бұрын
did you forget to put "inspired by code bullet? or have you never heard of him?
@TylerMommsen
@TylerMommsen 16 күн бұрын
@@dreamlandskribbl watch my flappy bird video, i mentioned it at the beginning. He inspired me to do this channel
@pietruszek2485
@pietruszek2485 29 күн бұрын
Hi, When I clicked on this video, I belived that it was some randome 1 mil or 100k youtuber by just looking at the quality of the video, then I look down and to my surprise you have only 60 or what subscribers. That's not fair! You have realy good content. So happy that yt algorithm showed me this film. Keep up the good work!
@TylerMommsen
@TylerMommsen 29 күн бұрын
Thank you I appreciate it!
@jesst_a_frog
@jesst_a_frog 22 күн бұрын
I’ve seen this guy’s other videos and I could have sworn I was subscribed but apparently not ??
@Stani-zt2ug
@Stani-zt2ug 18 күн бұрын
@@TylerMommsen WAIT WHAT ONLY 264?!??! NO WAY GG!!
@danielyoutubechannel407
@danielyoutubechannel407 18 күн бұрын
I have more than that!
@RustyBear
@RustyBear 18 күн бұрын
Same
@Fleopoo
@Fleopoo 19 күн бұрын
bro that visualisation of the network was the first time i’ve actually understood it
@miniskitproductions6955
@miniskitproductions6955 16 күн бұрын
i can really agree on that, first time actually seeing it working and on display
@s.saravanakumar5513
@s.saravanakumar5513 29 күн бұрын
Electronic engineers use hardware like sensors and controllers to make it to 7000 but you just recreated the whole game with a neck down dino which jumps on its own 😭😭
@davidebic
@davidebic 15 күн бұрын
Tbf not really a fair comparison considering AI has direct memory access
@jakublajda7434
@jakublajda7434 13 күн бұрын
This is not ai, it just use sensors, i already made it
@mr-nafari7355
@mr-nafari7355 Ай бұрын
i can't believe you built the game from the ground up to make the AI lol, good job man
@shadowkyber2510
@shadowkyber2510 18 күн бұрын
Look up code bullet. He pretty much made this same video 6 years ago. This videos better than his verson but his newer videos are pretty cool
@pvic6959
@pvic6959 17 күн бұрын
@@shadowkyber2510 CB's videos are more entertainment than education for sure lol. i still love them!
@jassimsalam
@jassimsalam 25 күн бұрын
This video will change the career of this KZbinr
@__________________________6910
@__________________________6910 9 күн бұрын
Yes
@exa4564
@exa4564 20 күн бұрын
I was godsmacked when I saw you only have 180 subs and this ain't a 100k+ view video... Really, that's a damn good video!
@TylerMommsen
@TylerMommsen 19 күн бұрын
Thanks I appreciate it!
@hhaydenk_
@hhaydenk_ 18 күн бұрын
Yeah I agree
@ITS_thecore19192
@ITS_thecore19192 16 күн бұрын
Wanna viewbot this so bad.
@gaimnbro9337
@gaimnbro9337 15 күн бұрын
Seems to have blown up. 1.63k subs deserved.
@Lampe2020
@Lampe2020 20 күн бұрын
I once found an about 10-line script for the original chrome dino that could play it withoug a neural network and basically only failed when the game gave it an impossible combo of cacti (which sometimes happens in the original game, where two cacti are in the exact distance from eachother that you can neither jump inbetween them nor jump over both in one go. ).
@TylerMommsen
@TylerMommsen 19 күн бұрын
10 line script??? Damn I need to get my coding skills up 😭😭😭
@Lampe2020
@Lampe2020 19 күн бұрын
@@TylerMommsen It wasn't ten lines, it was actually one line with 1164 characters. I'll try to post it here but cannot guarantee the comment won't get deleted: function keyDown(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keydown",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keydown",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}function keyUp(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keyup",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keyup",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}setInterval(function(){Runner.instance_.horizon.obstacles.length>0&&(Runner.instance_.horizon.obstacles[0].xPos75&&(keyUp(40),keyDown(38)),Runner.instance_.horizon.obstacles[0].xPos
@Lampe2020
@Lampe2020 19 күн бұрын
@@TylerMommsen Try to look in your comments moderation tools for an autodeleted comment answer from me, as KZbin didn't like that I pasted that script in there (it's actually one line of 1164 characters). You can copy the line from that comment or maybe even undelete it for others to see.
@TylerMommsen
@TylerMommsen 19 күн бұрын
@@Lampe2020 Ahhh 1164 characters thats why the script was 10 lines lol. Also, I couldn't find that comment for some reason idk why
@henrystickmin8812
@henrystickmin8812 17 күн бұрын
Does anyone see any low flying birds? I thought there were supposed to be birds on the ground that you had to jump over
@TylerMommsen
@TylerMommsen 16 күн бұрын
Yeah some other people mentioned that, but I completely forgot about those birds. It probably would have drove me insane lol
@irfanilyas9335
@irfanilyas9335 10 күн бұрын
😂
@tgreener-2823
@tgreener-2823 17 күн бұрын
That last dino from gen 57 was a menace
@devnitrate
@devnitrate 29 күн бұрын
Hey i just discovered your channel a few days ago and it's really well made and consistent keep it up
@GGMiggz
@GGMiggz 7 күн бұрын
hope you blow up! this type of content deserves 100’s of thousands of subs!!
@nimiugn
@nimiugn 26 күн бұрын
YT recommended me this for a whole day now and I decided to finally watch it. No regrets! I hope this will hit the algorithm soon!
@judoboy2019
@judoboy2019 8 күн бұрын
Awesome video! We need more quality devs like you! 😅
@luminousherbs
@luminousherbs 22 күн бұрын
Great quality video. I can tell lots of effort went into it
@m4mb470
@m4mb470 17 күн бұрын
Damn bro, I thought you had over a million subscribers only to see you had 600+, this is some underrated content right here!
@HuzaifaKhan-vn8tj
@HuzaifaKhan-vn8tj 17 күн бұрын
Glad to be here. Really lovin the content
@Layzy3D
@Layzy3D 17 күн бұрын
Thats so cool keep up the good work Tbh i was expecting way more followers you deserve a lot more !
@marpy
@marpy 16 күн бұрын
great stuff, looking forward to the next one!
@user-hq2qt5kx9q
@user-hq2qt5kx9q 29 күн бұрын
Man this work is awesome. I wish I reach your level one day.
@nx_studio
@nx_studio 17 күн бұрын
This was really entertaining! You deserve way more subscribers
@TheK2BlackPanther
@TheK2BlackPanther 17 күн бұрын
extreamly great content, you got your 800th sub! congrats
@CHATBITZ
@CHATBITZ 10 күн бұрын
Ayooo this soo good. Keep it up bro and I'd suggest maybe making tutorials etc on the side cuz im sure people would find it intriguing to learn how to do these types of things. I can see your channel get a lot brighter in the future and i wish you best of luck ❤
@backspaced
@backspaced 14 күн бұрын
underrated, so much skill and effort is put into this video
@k2p104
@k2p104 17 күн бұрын
It's not a bird.
@DJacoby-zc1ys
@DJacoby-zc1ys 13 күн бұрын
It's multiple birds
@TerenceBai-oi7wh
@TerenceBai-oi7wh 8 күн бұрын
Fun fact: At chrome://Dino you can play the dinosaur game without the internet
@Sophloveswolves
@Sophloveswolves 8 күн бұрын
Pterodactyl
@k2p104
@k2p104 8 күн бұрын
@@DJacoby-zc1ys no it's not
@k2p104
@k2p104 8 күн бұрын
@@Sophloveswolves thank you
@notdead5837
@notdead5837 17 күн бұрын
i'm surprised you don't even have 1k subs, this video is amazing!
@YuanPastor
@YuanPastor 5 күн бұрын
There’s no way this guys only got 4k sub keep up the good work ❤
@Party_snacks
@Party_snacks 17 күн бұрын
I was here before 1k I’ll see you when you get huge cause this is some high quality content and editing
@iankusapali9266
@iankusapali9266 7 күн бұрын
You have awesome content bro this is amazing
@CheezePie
@CheezePie 29 күн бұрын
That's really good! You earned a sub👍🏻
@avivfriedman
@avivfriedman 16 күн бұрын
really good video!! you deserve much more attention
@adudyak
@adudyak 13 күн бұрын
wow, thanks for video and source code!
@ChrisAsian3806
@ChrisAsian3806 15 күн бұрын
0:48 Iconic Mario Fail
@marwann1
@marwann1 10 күн бұрын
The algorithm blessed me with this video. Thanks man ❤
@bumbafa6181
@bumbafa6181 17 күн бұрын
Thank you for dropping the source code! It's a great thing to study.
@dsdsd1
@dsdsd1 17 күн бұрын
i love these types of coding videos :)
@Coolguy-ll8ik
@Coolguy-ll8ik 17 күн бұрын
This is quality content you deserve more subscribers keep up the good work❤❤❤
@Rubyboat
@Rubyboat 17 күн бұрын
amazing video! you need more subs. I love development and stuff, what library are you using for the ai?
@TylerMommsen
@TylerMommsen 16 күн бұрын
I used JavaScript for the whole game with the p5 library for the visuals. As for the AI, I didn't use a library, but I believe there are libraries for NEAT in js but I've never tried them
@thepangolinlord
@thepangolinlord 16 күн бұрын
your amazing not even 1 thousand subs and producing videos like this and just giving your fans the code like that. keep it up man
@Blue_Luigi
@Blue_Luigi 17 күн бұрын
Oh wow, I thought you had a lot of subscribers because of the quality of the video, but I just realised that you only have around 600, you deserve a lot more!
@AdamEasyP1
@AdamEasyP1 8 күн бұрын
After k saw the video i believed it is a youtuber with like 100k - 300k i was shocked its only 3k Great quality wish you success more on this platform
@BrentLikesBasicallyEverything
@BrentLikesBasicallyEverything 14 күн бұрын
This is hella good bro.
@NoNameJester
@NoNameJester 15 күн бұрын
Great job on 1.5K subs
@liang-junyan630
@liang-junyan630 9 күн бұрын
I love how the AI don't care about the obstacle height and width, they just cared about the distance
@whoyoda1183
@whoyoda1183 16 күн бұрын
Great video, love the visualisation! Gonna check out some more videos. Also an idea which came to my mind. If you have implemented the game on your own, maybe make a game speed change randomly for example, so it can depend on it more? Not sure if this is effective tho.
@TylerMommsen
@TylerMommsen 16 күн бұрын
Thanks for the support! You're right, using different game speeds would definitely help the dinos learn that faster and it would be effective I just forgot to implement that kind of variation training for this video
@Skybound_travel
@Skybound_travel 17 күн бұрын
Wow near the end the ai is better than me
@andreyambartsumov5340
@andreyambartsumov5340 17 күн бұрын
Hey man! Great video. When watching the video I thought this channel had at least 300-400k subscribers! Do you have any ressources and tips to start learning AI? I know Python and JavaScript but I just don't know where to start learning AI.
@TylerMommsen
@TylerMommsen 16 күн бұрын
Hey man thanks! You're already doing very good knowing both those languages. I responded to your other comment on the flappy bird video with some resources. Hope it helps!
@formuna
@formuna 16 күн бұрын
Such a cool project, how do you make the AI? Any specific tutorials?
@advaithrajendra
@advaithrajendra 7 күн бұрын
Full marks to the algorithm for bringing this video from a creator with only 3k subs to me Great video man pls do more
@yyhhttcccyyhhttccc6694
@yyhhttcccyyhhttccc6694 23 күн бұрын
you need more subs cause this video is epic
@DiamondWolfX
@DiamondWolfX 17 күн бұрын
That music with the jumping though
@sabbir5935
@sabbir5935 8 күн бұрын
Awesome work dude you might be become my inspiration
@skulduggerypleasant2782
@skulduggerypleasant2782 28 күн бұрын
How is this guy not big yet? Very good videos
@aksharvadher3876
@aksharvadher3876 29 күн бұрын
I know you'll be famous one day 'cause of your content... Enjoyed watching your videos... Doing Great...
@bryceblazegamingyt9741
@bryceblazegamingyt9741 16 күн бұрын
This is pretty awesome! :3 I understand that lots of people arent really interested in the technical side, but im sure a few people would probably enjoy a slightly more in depth analysis for how this stuff works and for example what frameworks you used to build a project, i eat programming and technical information for breakfast lol :3 otherwise amazing video! :3 P.S. i loved the sound design and music choice :3
@ananttiwari1337
@ananttiwari1337 12 күн бұрын
Great video
@kwabenantwifrank
@kwabenantwifrank 8 күн бұрын
we definitely need the source code Great Job
@levijagt582
@levijagt582 16 күн бұрын
This video taught me that there was a crouch option in the Dino game
@CoolStop2
@CoolStop2 18 күн бұрын
Holy shoot your underrated how do you only have 270 subs???
@hhaydenk_
@hhaydenk_ 19 күн бұрын
This is actually such a good video
@kingki1953
@kingki1953 15 күн бұрын
How did you save the learnt for each generatation. Did it saved in RAM, ROM, or GPU? I really wonder how reinforcement learning works but never try it.
@san_0000
@san_0000 8 күн бұрын
Only 3k subs bro's definitely underrated af damnnnnn
@Rafay_qayyum
@Rafay_qayyum 19 күн бұрын
Quality of content is just🔥🔥🔥🔥
@benyamincodesforever
@benyamincodesforever 17 күн бұрын
This is probably one of the best videos I've ever watched
@TylerMommsen
@TylerMommsen 17 күн бұрын
Thank you man I appreciate it!
@Gamermaster__69
@Gamermaster__69 8 күн бұрын
Dude make snake next!!! Btw, SUPER UNDERRATED, you deserve 10 million subs
@freds_chess
@freds_chess 14 күн бұрын
This is a really well made video! Do you take inspiration from Code Bullet? I love that guy too.
@TylerMommsen
@TylerMommsen 13 күн бұрын
Thanks! And yes, this entire channel is pretty much inspired by him. I love him and have watched him for years and actually got into AI because of him. I wish he posted more
@shauas4224
@shauas4224 17 күн бұрын
Wait HOW do you only have 500 subs? That's insanely underrated, quality of video is 100k+ level
@TylerMommsen
@TylerMommsen 17 күн бұрын
Thank you man!
@OakTheBunnyGuy
@OakTheBunnyGuy 26 күн бұрын
Its me! The 100th subscriber!!! No fr tho youre pretty underated.
@johndigirolamo5858
@johndigirolamo5858 15 күн бұрын
I was today years old when I learned you can crouch.
@killa6773
@killa6773 4 күн бұрын
Same
@FNPetersen
@FNPetersen 15 күн бұрын
Two former Code Bullet projects in a row?
@giohappy
@giohappy 17 күн бұрын
Fire vid 🔥🔥🔥
@zeeshaniqbal2014
@zeeshaniqbal2014 7 күн бұрын
6:33 Its like Dino's are skating on the snow😂
@Study_hard_dream_big
@Study_hard_dream_big 10 күн бұрын
How much time you taken to train the gen ai
@geografixxxx
@geografixxxx 17 күн бұрын
Wow man, I really enjoyed this video, this really motivated me to look into AI myself, and maybe try and replicate your experiment, kudos!
@TylerMommsen
@TylerMommsen 17 күн бұрын
Thank you! Definitely give it a try, it's real fun once you get it working
@francenkovcan5211
@francenkovcan5211 15 күн бұрын
iirc, the birds don't spawn before 200 and speed tops out at around 700 (or was that day/night swap trigger)
@GD_Sayori
@GD_Sayori 14 күн бұрын
The dino ducking everytime it touches the ground looks funny and cute (≧▽≦)
@tohgaming69
@tohgaming69 17 күн бұрын
mad underrated bro
@jaysmooveV2
@jaysmooveV2 16 күн бұрын
did the multiple dinos each have their own nn and after each iteration you averaged the gradients together and then the next genration all had the same starting point ?
@Bacon_person
@Bacon_person 8 күн бұрын
There is no way this guy only has 3k subs he requires more!
@itisjaredgaming7791
@itisjaredgaming7791 19 күн бұрын
No way this man only has 200 subs🔥😭
@ax3I
@ax3I 29 күн бұрын
Very cool video! Can't believe its this unwatched!
@funnyoceanofmemes1656
@funnyoceanofmemes1656 24 күн бұрын
you are going to boom ...........love this vedio bro and dont forget me when you become big
@wait_what_glitch
@wait_what_glitch 18 күн бұрын
KZbin must be glitching, there's no way you only have 286 subs
@yuvrajkukreja9727
@yuvrajkukreja9727 8 күн бұрын
where did you learn so Mutch skills !!! suggest me some ai and .js tutorials for making these kind of projects.
@Party_snacks
@Party_snacks 17 күн бұрын
What do the colors of the lines and the unlabeled numbers in the middle mean or represent
@TylerMommsen
@TylerMommsen 16 күн бұрын
red lines mean a positive connection between 0 to 1 and blue lines represent negative connections between 0 and -1. The unlabeled nodes (numbers) in the middle is called the hidden layer. You can think of it like extra layer of math before sending it to the output nodes.
@DJNEIL_MLE
@DJNEIL_MLE 17 күн бұрын
Codebullet vibes. Keep it up
@EweChewBrrr01
@EweChewBrrr01 21 күн бұрын
Would it have been better to let them master the jumping first then after that add the birds? I would assume that having anything learn one thing at a time would be easier. Good job by the way. I love watching these learning AI.
@TylerMommsen
@TylerMommsen 21 күн бұрын
You're right, that actually would have been a lot better I don't know why I didn't do that. I'll make sure not to forget for future AI vids. And thanks for the support!
@meatlover6916
@meatlover6916 17 күн бұрын
Hi, may I know what video editing software you use?
@TylerMommsen
@TylerMommsen 17 күн бұрын
Hey man, I use Adobe Premiere Pro
@contextinvideos
@contextinvideos 14 күн бұрын
this is the kind of video the google youtube channel should comment on
@snooks9852
@snooks9852 16 күн бұрын
I’m getting code bullet vibes 👀 good content tho
@A-Random-Cool-Person
@A-Random-Cool-Person 5 күн бұрын
The bird is the word
@jacetang9552
@jacetang9552 15 күн бұрын
Please make a video on the Edge surf game
@Almancea
@Almancea 23 күн бұрын
can you, pretty please, do the edge surf game next? there are much more possible inputs and game mechanics, so o think it would be a very cool video
@sixeleven637
@sixeleven637 17 күн бұрын
this guy has some serious potential
@Aayush_YT132
@Aayush_YT132 8 күн бұрын
Bro Just Gained a Ton of Subscribers cuz this Video is 🔥
@renasbayraktar7862
@renasbayraktar7862 17 күн бұрын
This is a million subscriber content right here, and I'm your 666th sub.
@SalvLav
@SalvLav 14 күн бұрын
What is the music
@Justgamingvr
@Justgamingvr 7 күн бұрын
Underrated
@kakamoora7874
@kakamoora7874 8 күн бұрын
What algorithm a u used here
@Rad_Pie
@Rad_Pie 13 күн бұрын
Great! Now try the game called "stack"
I coded more of ur STUPID ideas to Minecraft
13:53
Element X
Рет қаралды 824 М.
The Trackmania Campaign built with Only 3 Blocks?
23:09
WirtualTV
Рет қаралды 593 М.
⬅️🤔➡️
00:31
Celine Dept
Рет қаралды 47 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Can teeth really be exchanged for gifts#joker #shorts
00:45
Untitled Joker
Рет қаралды 16 МЛН
Are There Infinite Rounds In BTD6?
15:57
MackanRules
Рет қаралды 600 М.
Could you beat the LAST LEVEL in Poly Bridge 3?
24:21
Real Civil Engineer
Рет қаралды 414 М.
AI Learns to Outrun Police Officers
11:44
cozmouz
Рет қаралды 618 М.
AI Learns How To Play Flappy Bird
4:44
Tyler Mommsen
Рет қаралды 10 М.
The rarest move in chess
17:01
Paralogical
Рет қаралды 1,2 МЛН
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 437 М.
How We Beat The Password Game
15:38
thatsnomoon
Рет қаралды 8 МЛН
They turned MATH into a factory game...
21:34
Real Civil Engineer
Рет қаралды 742 М.
AI Learns To Play Lethal Company
12:56
Syntaxe
Рет қаралды 262 М.
How to 100% Minecraft
16:05
Blucubed
Рет қаралды 1,8 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
0:17
dednahype
Рет қаралды 4,6 МЛН
Technical error 🤣😂 Daily life of a couple #couple #shorts
0:25
Разница в уровнях🔥
0:26
FERMACHI
Рет қаралды 17 МЛН