AI learns to play 2048

  Рет қаралды 9,908,524

Code Bullet

Code Bullet

Күн бұрын

I created an AI to play the game 2048, his name is Thomas
Huge thanks to Brilliant.org for supporting this channel check them out at www.brilliant.org/CodeBullet
I have twitter now. Yay
follow me to fill the void in my heart
/ code_bullet
Become a patreon to support my future content as well as sneak peaks of whats to come.
/ codebullet
Check out my Discord server
/ discord
I know heaps of people are going to ask so here is the music
Mirror Mirror - Diamond Ortiz
Smiles for miles - Silent Partner
Hyperspeed - eveningland
Gypsy Dance - Topher Mohr and Alex Elena
Etherial Chior Ascends - Doug Maxwell
Wishful thinking - Dan Labowitz

Пікірлер: 6 900
@ihasarax
@ihasarax 4 жыл бұрын
Do i understand: no Am i entertained: yes
@oxygen_is_my_drug4811
@oxygen_is_my_drug4811 3 жыл бұрын
Did i ask:no
@Paulito-ym4qc
@Paulito-ym4qc 3 жыл бұрын
@@oxygen_is_my_drug4811 Shut up:yes
@critrawkets
@critrawkets 3 жыл бұрын
@Bergo 3L.Normie It's your opinion : yes.
@critrawkets
@critrawkets 3 жыл бұрын
@Bergo 3L.Normie this is not a roast: yes.
@ihasarax
@ihasarax 3 жыл бұрын
bro why did this chat get toxic for no reason
@nintendocaprimoon63
@nintendocaprimoon63 3 жыл бұрын
New favorite insult: "You're about as good as randomly pressing the left key"
@EurasianInvasion
@EurasianInvasion 3 жыл бұрын
Oh, damn you right
@746yashkashwani3
@746yashkashwani3 3 жыл бұрын
Right bro
@NoOne-wz2ht
@NoOne-wz2ht 3 жыл бұрын
Repetitively*
@ZielAmerak
@ZielAmerak 3 жыл бұрын
if you are lucky you'll get 2048 with just left and down over and over.
@NoOne-wz2ht
@NoOne-wz2ht 3 жыл бұрын
@@ZielAmerak I start by randomly mashing buttons
@campbellyrc12
@campbellyrc12 3 жыл бұрын
Tommy looks five moves into the future.. he sees his failures coming and has no choice but to helplessly walk towards them
@infrences
@infrences 3 жыл бұрын
Idk why this comment doesn’t have likes
@Hoghiderrr
@Hoghiderrr 3 жыл бұрын
He must follow fate
@derek-182
@derek-182 3 жыл бұрын
@@Hoghiderrr It is.... inevitable
@filetman125
@filetman125 3 жыл бұрын
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
@nolanfaught6974
@nolanfaught6974 3 жыл бұрын
It seems like the algorithm wasn't able to account for where tiles will appear or their value, so looking 5 moves into the future isn't much better than just looking one move into the future
@Sgtcrazyeyes235
@Sgtcrazyeyes235 3 жыл бұрын
Hearing you switch between calling the ai tommy and tomas when you’re frustrated is like a parent being upset at their child
@neonic6041
@neonic6041 6 ай бұрын
Yes
@xexpaguette
@xexpaguette 4 жыл бұрын
When I was a kid I didn't even know there was a strategy and thought it was a clicker game where you just swipe as fast as you can randomly.
@jasonhoward2613
@jasonhoward2613 3 жыл бұрын
There’s a strategy?
@xexpaguette
@xexpaguette 3 жыл бұрын
@@jasonhoward2613 yes
@bendily3623
@bendily3623 3 жыл бұрын
@@jasonhoward2613 there are many actually
@jasonhoward2613
@jasonhoward2613 3 жыл бұрын
@@bendily3623 wtf is the strategy everything is random chance except the math which is partly random to
@mattsadventureswithart5764
@mattsadventureswithart5764 3 жыл бұрын
I found always going clockwise (or anti) worked. Up, right, down, left (repeat)
@ryanantoine8457
@ryanantoine8457 3 жыл бұрын
"it keeps lower scoring tiles away from the highest score tiles" So the AI enforces aristocracy.
@yourtherapist1370
@yourtherapist1370 3 жыл бұрын
O H G O D
@yourtherapist1370
@yourtherapist1370 3 жыл бұрын
Spitty 22 bruh
@yourtherapist1370
@yourtherapist1370 3 жыл бұрын
Spitty 22 B R U H
@khucnguyenangkhoa2025
@khucnguyenangkhoa2025 3 жыл бұрын
Spitty 22 B R U H
@spitty2217
@spitty2217 3 жыл бұрын
B R U H
@user-ur7ri6ye1d
@user-ur7ri6ye1d 3 жыл бұрын
Code bullet is so brutal that he doesn't creates algorithm for game, He creates game for algorithm
@thebiggestthickestbean5232
@thebiggestthickestbean5232 3 жыл бұрын
I’ve never thought about it like that but yea you’re right, that’s pretty funny lol
@LordMaliscence
@LordMaliscence 3 жыл бұрын
@@Mightic exactly, with most simple games like this, it's much better to just code it yourself instead of trying to interface with an existing game
@puppergump4117
@puppergump4117 2 жыл бұрын
@@Mightic Yeah I think he started creating the games after the Piano Tiles incident.
@Wateristic
@Wateristic 2 жыл бұрын
its funny
@photonbee1932
@photonbee1932 Жыл бұрын
@@puppergump4117 this video was created BEFORE that… incident…
@kympx8460
@kympx8460 2 жыл бұрын
Being named Thomas, I felt quite called out through this
@watchdogofarron6662
@watchdogofarron6662 2 жыл бұрын
Same :( sorry for being a disappointment CB but please keep other Tommy’s out of it
@thomasshipstead7331
@thomasshipstead7331 2 жыл бұрын
Felt that lol
@LazyLetifer
@LazyLetifer 4 жыл бұрын
“Every one has the right to an opinion but not everyone’s opinion is right” Best quote of the decade
@melonx5380
@melonx5380 4 жыл бұрын
I agree with you
@thel0n3lytramp63
@thel0n3lytramp63 4 жыл бұрын
That quote is an opinion, and it is wrong
@greasychickenugget4410
@greasychickenugget4410 4 жыл бұрын
It's so true. Just like how my friend thinks dragon ball is the best anime. His opinion is wrong
@khalil7011
@khalil7011 4 жыл бұрын
Opinions cannot be right or wrong, if there is evidence behind the opinion then it is called a substantiated assumption and can be correct or incorrect
@thel0n3lytramp63
@thel0n3lytramp63 4 жыл бұрын
@@khalil7011 That opinion is also wrong IMO
@songbirdlover
@songbirdlover 5 жыл бұрын
Wow. I was just impressed with you recreating the game..
@riseeuterpe2838
@riseeuterpe2838 5 жыл бұрын
I'm pretty sure the original creator allowed for its free distribution so idk if he rly had to do that tbh XD
@stargazingsprout
@stargazingsprout 5 жыл бұрын
Harasuke Amu I’m pretty sure he needs to remake the game so the AI can see the code and actually play the game
@natenobles4372
@natenobles4372 5 жыл бұрын
The guy who made 2048 did it for fun in a week so it’s no surprise that it was kind of easy to recreate
@songbirdlover
@songbirdlover 5 жыл бұрын
@@natenobles4372 wow.
@Deathmastertx
@Deathmastertx 5 жыл бұрын
Recreating the game in Java was the final project of my first computer science unit at university.
@chizzicle
@chizzicle 3 жыл бұрын
I like how even when "Thomas" finally succeeds, it's still less efficient than any even slightly smart human player, making Tommy sort of pointless, but he always was a problem child and it's the journey that matters, not the destination
@O_CABBAGE
@O_CABBAGE 2 жыл бұрын
"Thomas kinda sucks" I hear enough of this normally, I don't need it to happen here too
@gristlyscarab7938
@gristlyscarab7938 4 жыл бұрын
Plot twist: It was his friend actually named Thomas playing all along
@fredthespear4923
@fredthespear4923 4 жыл бұрын
Gristly Scarab plot twist: Thomas was an ai
@Beanpolr
@Beanpolr 4 жыл бұрын
@@fredthespear4923 plot twist: Thomas was an ai made by his friend Thomas
@thomasnolastname8734
@thomasnolastname8734 4 жыл бұрын
*sips water*
@badutubezboi5050
@badutubezboi5050 4 жыл бұрын
mega oof plot twist: Thomas made Thomas who was an AI who made Thomas who was an AI
@IndoPhazrVX
@IndoPhazrVX 4 жыл бұрын
@ReTri 64 Ahh yes, a man of culture I see
@creeperx3sssboom347
@creeperx3sssboom347 5 жыл бұрын
Tomas: "I've looked 5 Moves in the future" Code Bullet: "In what one do we get to 2048?" Tomas: "One"
@wallacebell9719
@wallacebell9719 5 жыл бұрын
CreeperX3 sssBOOM I was about to comment the same thjng
@derkach7907
@derkach7907 5 жыл бұрын
Thomas:" Yes."
@gabeprice1979
@gabeprice1979 5 жыл бұрын
fuck you infinity war refrencer
@apacheattackhelicopter5823
@apacheattackhelicopter5823 5 жыл бұрын
That grammar ;-;
@Bubbled-0-0-
@Bubbled-0-0- 4 жыл бұрын
I like that comment it’s funny
@mr.mysteryjelly1532
@mr.mysteryjelly1532 2 жыл бұрын
"I CAN GO TO BED" has to be the funniest/saddest thing I have ever heard
@ricegorm
@ricegorm 3 жыл бұрын
As somebody who is named Thomas, this ai is basically a perfect recreation of anybody named Thomas. They fail at everything for a while, then somehow get it out of sheer luck.
@denisucuuu
@denisucuuu 2 жыл бұрын
Definitely not Thomas Wayne, since he succeeded for a while until running out of luck in an alleyway
@divakarmenon5381
@divakarmenon5381 Жыл бұрын
​@@denisucuuu that's Bruce Wayne?
@visiblerat
@visiblerat 11 ай бұрын
i am also named thomas and can confirm
@nirorit
@nirorit Ай бұрын
@@divakarmenon5381no
@axelandersson6314
@axelandersson6314 5 жыл бұрын
3:40. Well, that’s literally the strategy I’ve gone with for the past 2 years...
@enriquejunchaya5784
@enriquejunchaya5784 5 жыл бұрын
Axel Andersson same, but it doesn't always get you a 2048. There's the "luck" factor and that's why Thomas couldn't get it either.
@wthrwyz
@wthrwyz 5 жыл бұрын
This pretty much *is* the strategy for 2048; pick a corner and work toward it. It doesn't always work because the random placement of new tiles will occasionally put you in a state where it becomes impossible to win despite perfect play (as illustrated by the video), but that's the nature of any game that features a random element. Put simply, luck beats skill any day of the week. Whatever you do, never move your largest value tile out of that corner - the RNG *will* screw you by immediately spawning a 2 there.
@wwoods66
@wwoods66 5 жыл бұрын
@Nathan Williams -- "never move your largest value tile out of that corner" But sometimes that's the only move, alas.
@wthrwyz
@wthrwyz 5 жыл бұрын
Indeed, and the RNG gremlins are already chuckling.
@edde2429
@edde2429 5 жыл бұрын
Wouldn't a good way to make the AI develop better be to let each one do like 10 runs and see which one was the most consistant
@Sod1ePop
@Sod1ePop 4 жыл бұрын
"failure is important for learning" so that's why my dad says I'm important
@josef2970
@josef2970 4 жыл бұрын
me IRL
@ashleybroening6933
@ashleybroening6933 4 жыл бұрын
daaang
@neechama8313
@neechama8313 4 жыл бұрын
r/suicidebywords
@Notathreelettername
@Notathreelettername 4 жыл бұрын
Savage
@hunterofdarkness8329
@hunterofdarkness8329 4 жыл бұрын
Greatest mistake(iam sorry)
@melissaclaassen9707
@melissaclaassen9707 3 жыл бұрын
I love how much "failure" you actually include in your videos. It's interesting to watch how many types of things can actually go wrong while programming, and hearing what your thought process is to overcome them.
@lillyp1652
@lillyp1652 2 жыл бұрын
So basically avoiding the problem
@ethanhoward389
@ethanhoward389 3 жыл бұрын
Plot twist: hell release the second enigma machine video in the year 2048..he's leaving us clues
@JStubblefield79391
@JStubblefield79391 5 жыл бұрын
Code Bullet: “Alright, I think I’ll go to bed.” Thomas: “You’ll go to bed when we’ve reached 2048.”
@theeliteeaglegamer5893
@theeliteeaglegamer5893 5 жыл бұрын
Ai learns to code Ai
@dandanthedandan7558
@dandanthedandan7558 5 жыл бұрын
TheEliteEagleGamer Wow, wow, wow. Calm down. Are you trying to give birth to SkyNet?
@MyHentaiGirlNeko
@MyHentaiGirlNeko 5 жыл бұрын
TheEliteEagleGamer DESTROY HUMANITY
@Bestname_Ever
@Bestname_Ever 5 жыл бұрын
TheEliteEagleGamer so its.... AInception?
@ras862
@ras862 5 жыл бұрын
*i love this idea*
@Youmu_Konpaku_
@Youmu_Konpaku_ 5 жыл бұрын
We need that
@owltactics5540
@owltactics5540 2 жыл бұрын
I some how keep arriving at your videos late at night when I am searching for vids to watch and I always get so fascinated by you content.
@mantistsai6457
@mantistsai6457 2 жыл бұрын
Your second approach reminds me of the Othello algorithm I wrote for my introductory coding course a few semesters ago and I just wanted to say, I 100% understand watching said algorithm come *so close*
@Alex-dz8dm
@Alex-dz8dm 5 жыл бұрын
AI learns to take over the world -Code Bullet Video 2019
@Souls_29
@Souls_29 5 жыл бұрын
Hyrule Warrior if AI robots take over the world we can just blame Code Bullet
@hyperion9934
@hyperion9934 5 жыл бұрын
"His name is Paul and he conquers nations" -Code Bullet 2020
@TFWPLSSUB
@TFWPLSSUB 5 жыл бұрын
...of Minecraft
@davisgarrad7891
@davisgarrad7891 5 жыл бұрын
I feel like a civilization video would be cool actually
@captionato
@captionato 5 жыл бұрын
lmao
@azrubs593
@azrubs593 5 жыл бұрын
I felt so sad for him when he said “The next improvement was at generation 227” that’s gotta be so depressing
@sergioarvizu2972
@sergioarvizu2972 5 жыл бұрын
humans probably on generation like a million yet we still don’t know how to live perfectly. Good job AI
@aaronstorey9712
@aaronstorey9712 5 жыл бұрын
*247*
@Subakak
@Subakak 5 жыл бұрын
Me too
@pancakes9648
@pancakes9648 5 жыл бұрын
247***
@ryanrising2237
@ryanrising2237 5 жыл бұрын
Sergio Arvizu According to Wikipedia, the earliest representative of what we’d call humans, Homo Habilis, first showed up around 2.8 million years ago. Assuming generations take 20 years, which is probably very uninformed, that would be 140,000 generations. Not as much as a million, but a bit more time to develop than 247 generations. That’d only get us to here from just before the Great Pyramids were built.
@jackburg5595
@jackburg5595 3 жыл бұрын
Seeing you use processing is so nostalgic. Processing is fantastic
@nbabackcourtmedia
@nbabackcourtmedia 2 жыл бұрын
I finally beat this game after so many years, I can die happy now
@nbabackcourtmedia
@nbabackcourtmedia 2 жыл бұрын
@HelloThere nothing crazy it just says you won and you can keep going if you want
@LarryJL
@LarryJL 4 жыл бұрын
You should've told it that in addition to having the highest possible number in the top left corner is good, it should also prefer having as much free slots as possible and get rid of small tiles as much as possible
@fakename7725
@fakename7725 3 жыл бұрын
I would have thought that would be the one and only scoring method for future outcomes
@varmituofm
@varmituofm 3 жыл бұрын
He also had that the 2nd highest scoring tile should be next to the highest scoring tile. This should continue on down, the 3rd should be next to the second, the 4th next to the third.
@observable3194
@observable3194 3 жыл бұрын
The highest theoretical number is 131k but the biggest number achieved is 65k (I know person who’s done it but don’t know if anyone else has)
@garethbaus5471
@garethbaus5471 3 жыл бұрын
@@observable3194 I struggle getting past 4092 and I have spent way too much time playing 2048.
@frederickfritzsche97
@frederickfritzsche97 3 жыл бұрын
Yeah, I think the entire problem boils down to develop a better way to evaluate the "game state". Looking 5 steps into the future should be absolutely enough to win this game, probably even 3. But it's sort of useless if your definition of whether the game state is good or not is so bad. eg aligned values (along a sort of S-shape) are much better than a 15 / 6 / 13 / 1 / 7 etc. Would be a rather complex algorithm for a simple game but hey
@BrianJones01
@BrianJones01 4 жыл бұрын
When I went down the rabbit hole with this game, my strategy revolved around one simple restiction: choose a direction (in my case, up) and never move in that direction. A consequence of this is that the largest tiles end up on one face, similar to your "top left for highest value block" strategy. I wonder how the AI would do with this restriction in direction. Edit: 2048 became an easy target, if I recall correctly, 8192 was the max I reached before throwing the game in my "NEVER TOUCH AGAIN" category.
@xocheee
@xocheee 3 жыл бұрын
i could neverrrrr reach 8196 how long did that take???
@xocheee
@xocheee 3 жыл бұрын
@Natsu Dragneel lol do you mean score or tile? because i doubt youre dating the world record holder lmaoooo
@xocheee
@xocheee 3 жыл бұрын
@Natsu Dragneel probably on the app where undos are possible too...
@BrianJones01
@BrianJones01 3 жыл бұрын
@Natsu Dragneel I don't know that it can be considered "low" against any reasonable standard, even if it's not a record. To put it into perspective, a 6x6 board offers 2.25 times as much play area as a 4x4 board, and with that extra area comes many options for storing large tiles while building smaller tiles needed for further advancement (at a point, the hardest problem becomes efficient use of space). But still, congratulations to your girlfriend, impressive work!
@NoOne-wz2ht
@NoOne-wz2ht 3 жыл бұрын
My strategy is spam random buttons at the start then press random buttons
@dalvontah
@dalvontah 2 жыл бұрын
You’re teaching me better than my professors did
@calebdeming5515
@calebdeming5515 2 жыл бұрын
You are my favorite KZbin channel man. Love this shit
@VoVilliaCorp
@VoVilliaCorp 4 жыл бұрын
"Yes, I can go to bed!" the typical software engineer saying after a project XD
@ITAC85
@ITAC85 3 жыл бұрын
"I CAN, I just don't WANT to." - Typical Software Engineer ( not me)
@ocinnico2608
@ocinnico2608 4 жыл бұрын
"what's up guys, today's video is in 2048" -code bullet accidentally reveals his origins
@aang8026
@aang8026 4 жыл бұрын
Flunkyvs Lacky well now it isn’t anymore, so let’s like it again to try and get 512
@c10v3r
@c10v3r 4 жыл бұрын
**420 likes** :) **likes**
@evertree2133
@evertree2133 4 жыл бұрын
@@c10v3r But why?
@dougthedonkey1805
@dougthedonkey1805 4 жыл бұрын
I don’t get it
@dougthedonkey1805
@dougthedonkey1805 4 жыл бұрын
@Buddy Christ oh, I see. But what does that have to do with code bullet’s origins? Are they saying he’s a time traveler?
@Homieonice
@Homieonice 2 жыл бұрын
The video I been looking for for a WHILE
@shawnsimons418
@shawnsimons418 2 жыл бұрын
coding is just "if" statements - a wise man 2021
@arpitranasaria4878
@arpitranasaria4878 5 жыл бұрын
That moment at 9:08 where Tommy could have just gone up left left and reached 2048
@jdao1sm
@jdao1sm 5 жыл бұрын
Arpit Ranasaria YEAH
@saeber6630
@saeber6630 4 жыл бұрын
*GODDAMIT TOM*
@nightowl19god25
@nightowl19god25 4 жыл бұрын
Arpit Ranasaria right up left left
@mehregankbi
@mehregankbi 4 жыл бұрын
That’s where u see the value of human labeling. Simulating a human learning prespective is so hard that its better if a pro player of 2048 plays the game 500 times and we give the data to our neural network. Then AI can have a very good sense of what playing this game looks like. At this point AI knows how to play the game but there’s also room for improvement. so just like code bullet did, now we can use “choosing the best out of 5 moves” just like he did and it is gonna get better and better. The more complex the problem (self driving car) the more useful the human teaching
@Doctor_Straing_Strange
@Doctor_Straing_Strange 4 жыл бұрын
OMG
@MJDev14
@MJDev14 5 жыл бұрын
I have no clue what youre saying half the time but your channel is amazing
@zeonos
@zeonos Жыл бұрын
4 years later and i am still waiting for that enigma video.... you cant leave me hanging like this :(
@Azoperoa
@Azoperoa 2 жыл бұрын
ive never watched your channel on my pc and yet I've been recommended you, I don't mind
@Thomashorsman
@Thomashorsman 5 жыл бұрын
Sorry I wasn’t performing well
@romanboi8834
@romanboi8834 5 жыл бұрын
Try fuckin harder next time Thomas
@cheesecake-ne2qh
@cheesecake-ne2qh 5 жыл бұрын
Hello police I'd like to report a murder, I think the suspects name was John Garst? Please come to my location immediately, thank you.
@Joseph_Drew_III
@Joseph_Drew_III 5 жыл бұрын
No hard feelings Nikolai.
@alphapicturesentertainment
@alphapicturesentertainment 5 жыл бұрын
@@romanboi8834wanna go bowling?
@lilithkramer6698
@lilithkramer6698 5 жыл бұрын
Thomas Horsman HOLY SHIT I'M DYING
@leonjefferson6783
@leonjefferson6783 4 жыл бұрын
CB: Since the difference between random movements and intelligent movements is very small... Me: Yes! I'm almost intelligent! edit: 1.5k likes :O
@sheeloesreallycool
@sheeloesreallycool 4 жыл бұрын
100th like babyyyyy
@kosk-kosk2777
@kosk-kosk2777 4 жыл бұрын
Lol
@whydoiexist1527
@whydoiexist1527 4 жыл бұрын
881 like baby
@TheStoneBreak
@TheStoneBreak 4 жыл бұрын
I don't know the first thing about coding but always thought it was interesting. Is something like this really difficult or is it kind of an "eh" thing to other coders and only impresses the ignorant
@losereye
@losereye 4 жыл бұрын
@@TheStoneBreak Oh god these algorithms are pretty monserous, its very impressive depending on experiece/foucus in ur code, as coding styled progammers simmilar to him wouldn't vice virsa
@MetaLemonaide
@MetaLemonaide 2 жыл бұрын
Hey! I actually made a 2048 ai in college. Takes me back. Mine performed okay, but the algorithm was definitely trash compared to the top tier algorithms. Was satisfying to see it all work though.
@eyesak387
@eyesak387 2 жыл бұрын
Crazy how much calmer and happier he sounded in his old videos
@rasput1n6
@rasput1n6 5 жыл бұрын
*Make an AI learn to play Windows XP Pinball??* *I WOULD LOVE IT if it makes fancy combos continuously or see what he prefers to do lol*
@rcoverc
@rcoverc 5 жыл бұрын
My highest tile is 8192. Take that thomas.
@dragovern
@dragovern 5 жыл бұрын
One game where we are better... still
@thejman3489
@thejman3489 5 жыл бұрын
RCoverC one time I got a 4096 tile and 2 2048 tiles but they weren't next to each other and I lost because I couldn't combine then and free up space.
@rcoverc
@rcoverc 5 жыл бұрын
@@thejman3489 Nice job. That's still a great score. I haven't played 2048 for about 6 months but I can tell you that I was improving slowly. Once I had 2 8192 tiles and I couldn't combine them *FACEPALM* :(
@CavemanNo.12
@CavemanNo.12 5 жыл бұрын
I got to 512. Snake is more my game
@MichaelTwitt
@MichaelTwitt 5 жыл бұрын
I mean not trying to brag but...16384
@cuteandcewl
@cuteandcewl 3 жыл бұрын
Congratulations on 6.9 mill views mate! Nice
@geezus7152
@geezus7152 3 жыл бұрын
Bullet here explains the definition of camping “TOMMY KEEP TOP LEFT”
@zephyromenix8755
@zephyromenix8755 3 жыл бұрын
Every single AI video: It’s evolving, just backwards
@sir_slimestone3797
@sir_slimestone3797 4 жыл бұрын
"Everyone has a right to an opinion, but not every opinion is right" I love it, I'm stealing it for future arguments!
@mcplumpkin6191
@mcplumpkin6191 4 жыл бұрын
opinions aren't wrong or right
@sir_slimestone3797
@sir_slimestone3797 4 жыл бұрын
@@mcplumpkin6191 whoosh that flew over your head
@mcplumpkin6191
@mcplumpkin6191 4 жыл бұрын
@@sir_slimestone3797 woooosh* by the way, it's hard to tell if this was a joke because you don't know the tone of the text.
@geli95us
@geli95us 4 жыл бұрын
@@mcplumpkin6191 yes they are, if your opinions collide with evidence, then they are wrong.
@mcplumpkin6191
@mcplumpkin6191 4 жыл бұрын
@@geli95us they are based on thoughts and experiences.
@matthewp4046
@matthewp4046 3 жыл бұрын
I still want that second enigma video... Or, to be fair, any video.. Just keep making videos please.
@maximthemagnificent
@maximthemagnificent 3 жыл бұрын
Seems like using NEAT to evolve an evaluation metric for the lookahead approach would be a useful fusion of the two methods.
@noahtawil8793
@noahtawil8793 2 жыл бұрын
that’s how really advanced AIs like alpha zero work, they use the neural network to learn which parts of the game tree to look into
@MEANLEANBEAN
@MEANLEANBEAN 2 жыл бұрын
Wow thats neat
@SpeedySlothBoi
@SpeedySlothBoi 4 жыл бұрын
CB: keep the highest tile in the top left Tommy: how about... no?
@PandaFan2443
@PandaFan2443 5 жыл бұрын
The first generation is already better than me.
@azadanzans5359
@azadanzans5359 5 жыл бұрын
Nathan, i thought you were joking, but then I watched it. (I know you were joking even if it is true)
@thegamezterb6615
@thegamezterb6615 5 жыл бұрын
Agreed.
@mr.cringekid5117
@mr.cringekid5117 5 жыл бұрын
445th like
@mynewaccisecksspot6529
@mynewaccisecksspot6529 4 жыл бұрын
it's true
@DerGecko92_old
@DerGecko92_old 3 жыл бұрын
Same
@vel_kor
@vel_kor 3 жыл бұрын
i guess, it can take maximum after some "little" time period) (maximum is when all board is filled by the "snake" from 131072 to 4, i`ve did it by myself, and much people too) looking forward to see video with maximum)
@Mothuzad
@Mothuzad 2 жыл бұрын
Perhaps a better scoring algorithm would reward keeping tiles of the same value adjacent, and also somewhat reward keeping tiles of almost-the-same values adjacent. Also reward empty space, because that's your distance from the loss condition.
@kiweping5
@kiweping5 4 жыл бұрын
If there was no visuals this would be the title: Man screams at someone (presumably his son) for 11 minutes and 10 seconds
@maribelle1935
@maribelle1935 4 жыл бұрын
I love it
@aliveandunwell430
@aliveandunwell430 4 жыл бұрын
tru
@Notathreelettername
@Notathreelettername 4 жыл бұрын
96 likes
@jayseapplegate6965
@jayseapplegate6965 4 жыл бұрын
Go home you failure
@ramonmazur9940
@ramonmazur9940 4 жыл бұрын
Hi. you have the Tanki online logo photo I played back in the day, 2014 , 2015,2016,2017,2018.
@tysonmay5522
@tysonmay5522 5 жыл бұрын
Code an Ai that can beat another Ai in chess
@yolkeggs
@yolkeggs 5 жыл бұрын
Wait wouldn’t it always be a tie or am I missing something
@tysonmay5522
@tysonmay5522 5 жыл бұрын
Good point
@InnocentC0
@InnocentC0 5 жыл бұрын
There's a chess match for AI, though. It's quite intense and surprisingly complex.
@BorkKillsOneLegMan
@BorkKillsOneLegMan 5 жыл бұрын
@@yolkeggs let both ai know it can't end in a tie
@diegocastro7434
@diegocastro7434 5 жыл бұрын
@@yolkeggs you're missing something! Chess matches between different engines (ai's) are very common and some are far superior to others. Google recently destroyed the previous benchmark for the strongest engine (Stockfish) with their deep mind ai. In fact, by changing the difficulty of the chess computer on your phone, you're essentially getting two different "AI's".
@thomasremillet4621
@thomasremillet4621 3 жыл бұрын
Antennas are perfectly recreating facial expression, it's awesome
@reubenransfield7914
@reubenransfield7914 2 жыл бұрын
oh god.. 8:22 feels like when you’re on the last mission of a game and a slowed down instrumental version of the main theme plays…
@ryanzwe
@ryanzwe 5 жыл бұрын
I found your channel from the enigma video, would be great to see some more!
@benni2294
@benni2294 5 жыл бұрын
Me toooo :)
@itsme.lucaaa
@itsme.lucaaa 4 жыл бұрын
1:36 “let’s see what happens when we press the up arrow - aaaand they’re gone” 😂😂😂
@jakobbarbian2893
@jakobbarbian2893 4 жыл бұрын
Let's see what happens when we deposit this money, and its gone
@yoak
@yoak 4 жыл бұрын
Welcome to standing up school. And you failed..
@gjk-arts5855
@gjk-arts5855 4 жыл бұрын
Helix Peli asdf movie.... And I love it
@yoak
@yoak 4 жыл бұрын
GJKtale - Gacha and undertale have you watched #12?
@gjk-arts5855
@gjk-arts5855 4 жыл бұрын
Helix Peli only that 1-11 complitition
@humaneevee672
@humaneevee672 3 жыл бұрын
that moment when the segway was so good you didn't even realize it was an ad
@ShockingRotom
@ShockingRotom 3 жыл бұрын
I used that algorithm for a connect four game i made lol the first algorithm ive ever done its actually much more simple to do than it sounds. Most of the complexities comes from ajusting the points that are given for different game stats and stuff to make the ai the best as possible takes alot of small adjusting
@Crazy1793
@Crazy1793 5 жыл бұрын
It's April 21 2019 still no part 2 of enigma machine
@moormonkey
@moormonkey 5 жыл бұрын
AceSpace April 22 now
@LegitosaurusRex
@LegitosaurusRex 5 жыл бұрын
@@moormonkey Wow, amazing observation!
@lightningstar-ng9tm
@lightningstar-ng9tm 5 жыл бұрын
Dustin 23
@ahabsalnikov6135
@ahabsalnikov6135 5 жыл бұрын
@@lightningstar-ng9tm 24
@-Berry.
@-Berry. 5 жыл бұрын
down stairs stuff 25
@simplistxc6649
@simplistxc6649 5 жыл бұрын
He will single handedly create an AI that will destroy the world.
@farisakmal2722
@farisakmal2722 5 жыл бұрын
* Tommy launches nukes * *TOMMY NOOOOOOOOO*
@bryceboukater4618
@bryceboukater4618 3 жыл бұрын
I love how many voice cracks he has, it makes him seem so much more human and relatable then these other youtubers with over 1 mil subs
@Flaming_Pulsar
@Flaming_Pulsar 3 жыл бұрын
While keeping the biggest number in the corner and the next biggest right next to it is an important part of the winning strategy, it's also worth noting that the undo function is quite useful for any unlucky spawns. For example, if you are forced to move the biggest number out of the corner and a 2 spawns in the corner, you can undo the move3 and do it again in the hopes of a better spawn. Or another one could be a 2 spawning when a 4 would be better (or vice versa). Or times when the spawn happens on the wrong line and it would mess up all your plans. While a lot of these examples usually won't prevent you from getting to 2048, getting into higher numbers requires knowing when to use the undo function (also worth noting that you can only undo 1 move at a time).
@XanderLuciano
@XanderLuciano 5 жыл бұрын
Your sense of humor in these is simply amazing! Love it, doesn't matter how successfully or not your creations are, your commentary makes these 10/10. It's pretty cool to see what challenges you run into and what solutions you come up with to them. Interesting to see your different approaches :)
@agentstache135
@agentstache135 5 жыл бұрын
AI learns to play threes. Threes is a much more interesting game that was released before 2048. It takes a lot more strategy and just looks better
@Shennzo
@Shennzo 5 жыл бұрын
@Wax Meatley Funny thing is 2048 is the one that ripped off threes and gave it better graphics, that's what made it more popular
@seven_chords
@seven_chords 5 жыл бұрын
also the system behind the tiles added is much more complex in threes
@dominickeijzer5844
@dominickeijzer5844 5 жыл бұрын
You're the Illuminati.
@Ferotiq
@Ferotiq 5 жыл бұрын
Of course it was released before 2048, it isn’t even 2048 yet! It’s only 2019!
@dominickeijzer5844
@dominickeijzer5844 5 жыл бұрын
Wooosh. Edit: I wooshed myself.
@itsTomate
@itsTomate 3 жыл бұрын
This just popped up, I’m expecting a video in the next two weeks. KZbin always does this to me for some reason: a video I’ve already watched is re-recommended to me, and less than a week later a new video comes out. Hope I’m right
@scruffybixweetabix2295
@scruffybixweetabix2295 2 жыл бұрын
Okay, that subtle fusion dance make me so happy inside
@RqtiOfficial
@RqtiOfficial 5 жыл бұрын
ai learns to play agar.io
@bluue5756
@bluue5756 5 жыл бұрын
David Simon And?
@bluue5756
@bluue5756 5 жыл бұрын
@@legoguney but *everyone* had to love it for some reason
@art-oq1pi
@art-oq1pi 5 жыл бұрын
David Simon how is it trash
@mac1cam
@mac1cam 5 жыл бұрын
Someone allready made a bot for agar.io
@anton7591
@anton7591 5 жыл бұрын
@@legoguney just Because it's old does not mean that it is bad
@eing7025
@eing7025 5 жыл бұрын
I clicked the subscribe button twice. I was already subscribed tho
@lochuynh6615
@lochuynh6615 5 жыл бұрын
When you walk 😂
@wiredfpz7496
@wiredfpz7496 5 жыл бұрын
there was no point of commenting that well done
@Parker05
@Parker05 5 жыл бұрын
Eing subscribe-unsubscribe-subscribed again. Thanks Eing, Very cool!!
@ryanchi1309
@ryanchi1309 2 жыл бұрын
Man you truly love what you do! Inspiring
@TheSheriff1873
@TheSheriff1873 2 жыл бұрын
I like to put the biggest tiles in bottom right and work from bottom left to right but this works too
@jeffreythecow2392
@jeffreythecow2392 4 жыл бұрын
Thomas: Is an AI and within 5 tries reaches 2048 Me: can’t even get to 512
@3_ormorecharacters
@3_ormorecharacters 4 жыл бұрын
I can barely get to 64
@WistfulAZ
@WistfulAZ 4 жыл бұрын
A computer pressing random keys has gotten farther than I ever have.
@alexandrubragari1537
@alexandrubragari1537 4 жыл бұрын
Stop to pretend to be so dumb lmao, its actually impossible to not to reach 256 even moving completely random i guess, anyway back at school my record was 8192 (+ 2 2048,so i wasnt really close to the 16k)
@teraspeXt
@teraspeXt 4 жыл бұрын
@@alexandrubragari1537 It's not impossible. You just have to intentionally be stupid. Edit: I think it might be near impossible to not get to 32.
@williamsomlai141
@williamsomlai141 4 жыл бұрын
ATS Gaming you gave me challenge, im getting under 32 and i will never stop trying
@musashiaerostar4409
@musashiaerostar4409 3 жыл бұрын
7:50 - 7:52 That made me laugh harder than it should
@KitTheAnkafolk
@KitTheAnkafolk 2 жыл бұрын
Me too XD
@crispy8880
@crispy8880 2 жыл бұрын
I remember this, my goodness this was so long ago.
@StealthyDead
@StealthyDead 10 ай бұрын
I remember figuring this out and maxing out the game because you couldn't fit any more unique tiles on the screen to add together
@falilivud6937
@falilivud6937 5 жыл бұрын
Love ur channel Keep up the good work👍👍
@sacobred8400
@sacobred8400 4 жыл бұрын
me: *hears over-dramatic royalty-free music* also me: yeah dis the one
@mythicallegend1047
@mythicallegend1047 10 ай бұрын
Me: *goes to yt to find some info and help on sth* YT: i’m gonna put a super interesting video from CB om your frontpage to distract you for a solid 11 minutes and 10 seconds
@AxGryndr
@AxGryndr 6 ай бұрын
I think the issue with using a MinMax strategy, that is the game states algorithm CB was waltzing around, is that it cannot accurately account for the randomness of the new tiles that spawn in. These new tiles have a random location with a probabilistic value. When 'aiming' for a future state, it is possible that state is unachievable because the tiles needed to get there didn't spawn in the same locations with the same values.
@judithjanneck1719
@judithjanneck1719 5 жыл бұрын
You should have added to Thomas points for not moving the biggest tile. What I learned from playing this game constantly is that you should never move the biggest tile from his corner except there is no other way.
@VandreBorba
@VandreBorba 5 жыл бұрын
I don't know.... Give more points to a right strategy moviment is not a bit cheating?
@Raff-mu5qc
@Raff-mu5qc 4 жыл бұрын
"my man thomas looks 5 moves into the future" This is King Crimsons ability
@ThatOneGuyYaKnow
@ThatOneGuyYaKnow 5 ай бұрын
For those curious like me of the BGM in 8:18, its; "25-03: There Is Nothing Left to Say or Do (Short Version)"
@jakkos3346
@jakkos3346 3 жыл бұрын
Dude, enigma machine part 2, has it not been enough years!?
@potatomanW
@potatomanW 5 жыл бұрын
Your videos are great and the new animations are awesome
@chasem8393
@chasem8393 5 жыл бұрын
potato man lol I remember seeing you in a video comment forever ago and was like “is that machamp-weedle fusion” 😂
@gnaskar
@gnaskar 5 жыл бұрын
1: don't give points for having the same number next to each other; the value of the that is recorded in the next state, not this one. 2: reduce point value of a tile by 40% if the tile to the left is smaller and by 40% the tile above is smaller (this is a generalization of of keeping the biggest in the top left). If both are true the remaining value is 20%. 3: Award a sizeable bonus for empty tiles. Honestly, an AI that just tried to minimize the number of tiles with numbers on them with 5 states look ahead would probably be fairly good at this game.
@zimne5212
@zimne5212 Жыл бұрын
I think you could add multiple things for improvement: 1. moving the big tile ever out of a corner should be nearly as punished as losing 2. you should also harshly punish not having some line from highest to smallest. With that and 5 steps in the future you should easily get 4096 consistently.
@jakerussell135
@jakerussell135 9 ай бұрын
That wouldn't actually do very much. The best strategy that human players are able to use consistently is keeping your six largest tiles in a 2x3 rectangle on a corner. The order of the tiles within the rectangle doesn't matter, only the location of the smallest of the 6
@zimne5212
@zimne5212 9 ай бұрын
@@jakerussell135 I think you are wrong, I was really competitive with a friend in school on this, and we both got to the 8192 tile (no redo button). And I can still do the 2048 tile without really thinking >90%. If you have the highest 4 from one side to the other small to high, you got 3 possible directions that won’t destroy your setup. If you go 2*3 you often only got 2. This might be enough for 2048, but not much more. If you don't have a correct order, you will have to make awkward moves at some point. I might be wrong though, if you got a more specific strategy and good success I would be interested.
@jakerussell135
@jakerussell135 9 ай бұрын
@@zimne5212 try searching "839952" here on KZbin. A game of 2048 by Stefan Popescu should show up. L That's the fourth highest known human score ever. It uses that 2x3 method as well. The benefit of the 2x3 method is that it actually allows you to use all four directions much of the time
@mattt8265
@mattt8265 3 жыл бұрын
It sounds like you implied you were using the minmax algorithm to evaluate the future game states. When evaluating the game state, you could take into consideration the possible locations for the new tile & its value (called substates) and apply a modified minmax algorithm to those substates. I can tell that this is not being done because of the move at 8:25, where 256,128,128 is moved right. The minimum state for that move would have been a 2 being added at the top left corner, permanently (for the forseeable 5 future moves, actually) displacing 512 from being in the top left corner. A left direction in this instance would be the better move. I'm halfway motivated to make a better algorithm for this game myself now
@Youmu_Konpaku_
@Youmu_Konpaku_ 5 жыл бұрын
_Ai learns how to take control of humanity_
@thesadsalamander1282
@thesadsalamander1282 5 жыл бұрын
Y E S
@jerrygeorge4478
@jerrygeorge4478 5 жыл бұрын
YOU PROMISED US!
@boggless2771
@boggless2771 5 жыл бұрын
+
@henryfrollo3184
@henryfrollo3184 3 жыл бұрын
when the music started playing I knew shit was about to go down.
@elfarcherdv
@elfarcherdv 3 жыл бұрын
I have a feeling the NN could work better if it was rewarded for the amount of turns the highest tile was in a corner as well as minimizing the amount of tiles on the board as opposed to a blanket, get the highest tile you can approach. Then again I am an economist not a programmer. Great work man
@ShashankPinchaG
@ShashankPinchaG 5 жыл бұрын
Enigma!!! Gimme me Enigma!
@azayles
@azayles 5 жыл бұрын
GIB MIR JETZT ENIGMA! SCHNELL! SCHNELL!!
@Luca-sg8zf
@Luca-sg8zf 5 жыл бұрын
UPPP!
@trueguy9847
@trueguy9847 5 жыл бұрын
Azy Die Deutschen sind überall xD
@jazzyboxer
@jazzyboxer 5 жыл бұрын
Shashank Pincha I am here!
@gojifan54gaming15
@gojifan54gaming15 5 жыл бұрын
NEIN!
@Fattycheese73
@Fattycheese73 5 жыл бұрын
I think there’s an issue with the algorithm. In the actual game, part of the challenge is not knowing whether a 2 or 4 is gonna spawn. This especially matters when the board is almost full. Since the algorithm calculates what the board is gonna look like after 5 moves, then it already knows whether a 4 or 2 is gonna spawn in every one of those moves.
@boggers
@boggers 5 жыл бұрын
i think if the AI knew what would spawn where ahead of time it would be solving for 2048 every time very easily. What he should be doing is calculating for every possibility over a couple of moves and playing the "safest" path. Treat the RNG as an adversary, and minimise the damage it can do.
@4xelchess905
@4xelchess905 5 жыл бұрын
yeah, he is probably doing a min max algo over the tree of all possible moves AND spawns. Alternatively, he may be computing probabilities and expected gains on that tree. A refinement would be making a Monte Carlo search, since we know the distribution of spawning. If the AI knew what would spawn where ahead of time, it would lead to spawn manipulation abuse, where the AI deliberately chooses an objectively subpaar move because he knows it will be lucky (the spawn location has to depend on its move, since available locations depend on its move).
@jsmunroe
@jsmunroe 5 жыл бұрын
This is they same way chess algorithms work. They calculate all possible next stages for each of the next possible moves. He claims he goes 5 layers deep with this. That's a fairly massive search tree, but I guess if he has the computational power and/or the time he could do it.
@danielfay8963
@danielfay8963 5 жыл бұрын
Additionally a 4 only spawns 10% of the time, meaning you need to account for the probability of a given outcome when considering the risk/reward
@daniellucas5522
@daniellucas5522 5 жыл бұрын
Not that massive for this game. Chess has far more moves available in a turn, this one has only 4 moves and then the number of empty locations on the board left * 2 for where the next block will spawn.
@bradysmeyers5950
@bradysmeyers5950 3 жыл бұрын
Videos like code bullets make me want to learn how to code.
@ArtamisBot
@ArtamisBot 2 жыл бұрын
When you realize that all AI models are still technically algorithms... just really obfuscated ones.
AI learns to play the WORLDS HARDEST GAME even more levels
13:25
Code Bullet
Рет қаралды 6 МЛН
A.I. Learns to play Snake using Deep Q Learning
15:15
Code Bullet
Рет қаралды 3,4 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Тяжелые будни жены
00:46
К-Media
Рет қаралды 2,7 МЛН
I Created An A.I. to DESTROY Tetris
17:25
Code Bullet
Рет қаралды 3,3 МЛН
AI learns to play Google Chrome Dinosaur Game || Can you beat it??
10:21
DESTROYING Donkey Kong with AI (Deep Reinforcement Learning)
29:46
Code Bullet
Рет қаралды 3,5 МЛН
I created an AI to Play Chess
11:52
Code Bullet
Рет қаралды 2,7 МЛН
AI Learns to WALK 3D
20:19
Code Bullet
Рет қаралды 2,2 МЛН
AI Learns to DESTROY old CPUs | Mario Kart Wii
9:54
AI Tango
Рет қаралды 1,3 МЛН
Making a Calculator using ONLY MARBLES
11:46
Code Bullet
Рет қаралды 2,7 МЛН
BREAKING Storm The House with an AUTO CLICKER
11:24
Code Bullet
Рет қаралды 13 МЛН
A.I. Learns to DRIVE
16:17
Code Bullet
Рет қаралды 6 МЛН
I programmed an A.I. to DESTROY the game PONG
11:16
Code Bullet
Рет қаралды 2,9 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28