AI learns to play 2048

2024 ж. 15 Мам.
9 907 579 Рет қаралды

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

Пікірлер
  • 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.

    @xexpaguette@xexpaguette4 жыл бұрын
    • There’s a strategy?

      @jasonhoward2613@jasonhoward26133 жыл бұрын
    • @@jasonhoward2613 yes

      @xexpaguette@xexpaguette3 жыл бұрын
    • @@jasonhoward2613 there are many actually

      @bendily3623@bendily36233 жыл бұрын
    • @@bendily3623 wtf is the strategy everything is random chance except the math which is partly random to

      @jasonhoward2613@jasonhoward26133 жыл бұрын
    • I found always going clockwise (or anti) worked. Up, right, down, left (repeat)

      @mattsadventureswithart5764@mattsadventureswithart57643 жыл бұрын
  • Do i understand: no Am i entertained: yes

    @ihasarax@ihasarax4 жыл бұрын
    • Did i ask:no

      @oxygen_is_my_drug4811@oxygen_is_my_drug48113 жыл бұрын
    • @@oxygen_is_my_drug4811 Shut up:yes

      @Paulito-ym4qc@Paulito-ym4qc3 жыл бұрын
    • @Bergo 3L.Normie It's your opinion : yes.

      @critrawkets@critrawkets3 жыл бұрын
    • @Bergo 3L.Normie this is not a roast: yes.

      @critrawkets@critrawkets3 жыл бұрын
    • bro why did this chat get toxic for no reason

      @ihasarax@ihasarax3 жыл бұрын
  • Tommy looks five moves into the future.. he sees his failures coming and has no choice but to helplessly walk towards them

    @campbellyrc12@campbellyrc123 жыл бұрын
    • Idk why this comment doesn’t have likes

      @infrences@infrences3 жыл бұрын
    • He must follow fate

      @Hoghiderrr@Hoghiderrr3 жыл бұрын
    • @@Hoghiderrr It is.... inevitable

      @derek-182@derek-1823 жыл бұрын
    • ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

      @filetman125@filetman1253 жыл бұрын
    • 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

      @nolanfaught6974@nolanfaught69743 жыл бұрын
  • New favorite insult: "You're about as good as randomly pressing the left key"

    @nintendocaprimoon63@nintendocaprimoon633 жыл бұрын
    • Oh, damn you right

      @EurasianInvasion@EurasianInvasion3 жыл бұрын
    • Right bro

      @746yashkashwani3@746yashkashwani33 жыл бұрын
    • Repetitively*

      @NoOne-wz2ht@NoOne-wz2ht3 жыл бұрын
    • if you are lucky you'll get 2048 with just left and down over and over.

      @ZielAmerak@ZielAmerak3 жыл бұрын
    • @@ZielAmerak I start by randomly mashing buttons

      @NoOne-wz2ht@NoOne-wz2ht3 жыл бұрын
  • “Every one has the right to an opinion but not everyone’s opinion is right” Best quote of the decade

    @LazyLetifer@LazyLetifer4 жыл бұрын
    • I agree with you

      @melonx5380@melonx53804 жыл бұрын
    • That quote is an opinion, and it is wrong

      @thel0n3lytramp63@thel0n3lytramp634 жыл бұрын
    • It's so true. Just like how my friend thinks dragon ball is the best anime. His opinion is wrong

      @greasychickenugget4410@greasychickenugget44104 жыл бұрын
    • 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

      @khalil7011@khalil70114 жыл бұрын
    • @@khalil7011 That opinion is also wrong IMO

      @thel0n3lytramp63@thel0n3lytramp634 жыл бұрын
  • "it keeps lower scoring tiles away from the highest score tiles" So the AI enforces aristocracy.

    @ryanantoine8457@ryanantoine84573 жыл бұрын
    • O H G O D

      @yourtherapist1370@yourtherapist13703 жыл бұрын
    • Spitty 22 bruh

      @yourtherapist1370@yourtherapist13703 жыл бұрын
    • Spitty 22 B R U H

      @yourtherapist1370@yourtherapist13703 жыл бұрын
    • Spitty 22 B R U H

      @khucnguyenangkhoa2025@khucnguyenangkhoa20253 жыл бұрын
    • B R U H

      @spitty2217@spitty22173 жыл бұрын
  • Hearing you switch between calling the ai tommy and tomas when you’re frustrated is like a parent being upset at their child

    @Sgtcrazyeyes235@Sgtcrazyeyes2353 жыл бұрын
    • Yes

      @neonic6041@neonic60416 ай бұрын
  • Code bullet is so brutal that he doesn't creates algorithm for game, He creates game for algorithm

    @user-ur7ri6ye1d@user-ur7ri6ye1d3 жыл бұрын
    • I’ve never thought about it like that but yea you’re right, that’s pretty funny lol

      @thebiggestthickestbean5232@thebiggestthickestbean52323 жыл бұрын
    • @@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

      @LordMaliscence@LordMaliscence3 жыл бұрын
    • @@Mightic Yeah I think he started creating the games after the Piano Tiles incident.

      @puppergump4117@puppergump41172 жыл бұрын
    • its funny

      @Wateristic@Wateristic Жыл бұрын
    • @@puppergump4117 this video was created BEFORE that… incident…

      @photonbee1932@photonbee1932 Жыл бұрын
  • Plot twist: It was his friend actually named Thomas playing all along

    @gristlyscarab7938@gristlyscarab79384 жыл бұрын
    • Gristly Scarab plot twist: Thomas was an ai

      @fredthespear4923@fredthespear49234 жыл бұрын
    • @@fredthespear4923 plot twist: Thomas was an ai made by his friend Thomas

      @Beanpolr@Beanpolr4 жыл бұрын
    • *sips water*

      @thomasnolastname8734@thomasnolastname87344 жыл бұрын
    • mega oof plot twist: Thomas made Thomas who was an AI who made Thomas who was an AI

      @badutubezboi5050@badutubezboi50504 жыл бұрын
    • @ReTri 64 Ahh yes, a man of culture I see

      @IndoPhazrVX@IndoPhazrVX4 жыл бұрын
  • Wow. I was just impressed with you recreating the game..

    @songbirdlover@songbirdlover5 жыл бұрын
    • I'm pretty sure the original creator allowed for its free distribution so idk if he rly had to do that tbh XD

      @riseeuterpe2838@riseeuterpe28385 жыл бұрын
    • Harasuke Amu I’m pretty sure he needs to remake the game so the AI can see the code and actually play the game

      @stargazingsprout@stargazingsprout5 жыл бұрын
    • 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

      @natenobles4372@natenobles43725 жыл бұрын
    • @@natenobles4372 wow.

      @songbirdlover@songbirdlover5 жыл бұрын
    • Recreating the game in Java was the final project of my first computer science unit at university.

      @Deathmastertx@Deathmastertx5 жыл бұрын
  • Being named Thomas, I felt quite called out through this

    @kympx8460@kympx84602 жыл бұрын
    • Same :( sorry for being a disappointment CB but please keep other Tommy’s out of it

      @watchdogofarron6662@watchdogofarron66622 жыл бұрын
    • Felt that lol

      @thomasshipstead7331@thomasshipstead73312 жыл бұрын
  • 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

    @chizzicle@chizzicle3 жыл бұрын
  • Tomas: "I've looked 5 Moves in the future" Code Bullet: "In what one do we get to 2048?" Tomas: "One"

    @creeperx3sssboom347@creeperx3sssboom3475 жыл бұрын
    • CreeperX3 sssBOOM I was about to comment the same thjng

      @wallacebell9719@wallacebell97195 жыл бұрын
    • Thomas:" Yes."

      @derkach7907@derkach79075 жыл бұрын
    • fuck you infinity war refrencer

      @gabeprice1979@gabeprice19795 жыл бұрын
    • That grammar ;-;

      @apacheattackhelicopter5823@apacheattackhelicopter58235 жыл бұрын
    • I like that comment it’s funny

      @Bubbled-0-0-@Bubbled-0-0-4 жыл бұрын
  • Ai learns to code Ai

    @theeliteeaglegamer5893@theeliteeaglegamer58935 жыл бұрын
    • TheEliteEagleGamer Wow, wow, wow. Calm down. Are you trying to give birth to SkyNet?

      @dandanthedandan7558@dandanthedandan75585 жыл бұрын
    • TheEliteEagleGamer DESTROY HUMANITY

      @MyHentaiGirlNeko@MyHentaiGirlNeko5 жыл бұрын
    • TheEliteEagleGamer so its.... AInception?

      @Bestname_Ever@Bestname_Ever5 жыл бұрын
    • *i love this idea*

      @ras862@ras8625 жыл бұрын
    • We need that

      @Youmu_Konpaku_@Youmu_Konpaku_5 жыл бұрын
  • "Thomas kinda sucks" I hear enough of this normally, I don't need it to happen here too

    @O_CABBAGE@O_CABBAGE2 жыл бұрын
  • 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.

    @ricegorm@ricegorm3 жыл бұрын
    • Definitely not Thomas Wayne, since he succeeded for a while until running out of luck in an alleyway

      @denisucuuu@denisucuuu2 жыл бұрын
    • ​@@denisucuuu that's Bruce Wayne?

      @divakarmenon5381@divakarmenon5381 Жыл бұрын
    • i am also named thomas and can confirm

      @visiblerat@visiblerat11 ай бұрын
    • @@divakarmenon5381no

      @nirorit@niroritАй бұрын
  • "failure is important for learning" so that's why my dad says I'm important

    @Sod1ePop@Sod1ePop4 жыл бұрын
    • me IRL

      @josef2970@josef29704 жыл бұрын
    • daaang

      @ashleybroening6933@ashleybroening69334 жыл бұрын
    • r/suicidebywords

      @neechama8313@neechama83134 жыл бұрын
    • Savage

      @Notathreelettername@Notathreelettername4 жыл бұрын
    • Greatest mistake(iam sorry)

      @hunterofdarkness8329@hunterofdarkness83294 жыл бұрын
  • I felt so sad for him when he said “The next improvement was at generation 227” that’s gotta be so depressing

    @azrubs593@azrubs5935 жыл бұрын
    • humans probably on generation like a million yet we still don’t know how to live perfectly. Good job AI

      @sergioarvizu2972@sergioarvizu29725 жыл бұрын
    • *247*

      @aaronstorey9712@aaronstorey97125 жыл бұрын
    • Me too

      @Subakak@Subakak5 жыл бұрын
    • 247***

      @pancakes9648@pancakes96485 жыл бұрын
    • 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.

      @ryanrising2237@ryanrising22375 жыл бұрын
  • "I CAN GO TO BED" has to be the funniest/saddest thing I have ever heard

    @mr.mysteryjelly1532@mr.mysteryjelly15322 жыл бұрын
  • 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.

    @melissaclaassen9707@melissaclaassen97073 жыл бұрын
    • So basically avoiding the problem

      @lillyp1652@lillyp16522 жыл бұрын
  • That moment at 9:08 where Tommy could have just gone up left left and reached 2048

    @arpitranasaria4878@arpitranasaria48785 жыл бұрын
    • Arpit Ranasaria YEAH

      @jdao1sm@jdao1sm5 жыл бұрын
    • *GODDAMIT TOM*

      @saeber6630@saeber66304 жыл бұрын
    • Arpit Ranasaria right up left left

      @nightowl19god25@nightowl19god254 жыл бұрын
    • 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

      @mehregankbi@mehregankbi4 жыл бұрын
    • OMG

      @Doctor_Straing_Strange@Doctor_Straing_Strange4 жыл бұрын
  • AI learns to take over the world -Code Bullet Video 2019

    @Alex-dz8dm@Alex-dz8dm5 жыл бұрын
    • Hyrule Warrior if AI robots take over the world we can just blame Code Bullet

      @Souls_29@Souls_295 жыл бұрын
    • "His name is Paul and he conquers nations" -Code Bullet 2020

      @hyperion9934@hyperion99345 жыл бұрын
    • ...of Minecraft

      @TFWPLSSUB@TFWPLSSUB5 жыл бұрын
    • I feel like a civilization video would be cool actually

      @davisgarrad7891@davisgarrad78915 жыл бұрын
    • lmao

      @captionato@captionato5 жыл бұрын
  • Plot twist: hell release the second enigma machine video in the year 2048..he's leaving us clues

    @ethanhoward389@ethanhoward3893 жыл бұрын
  • 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*

    @mantistsai6457@mantistsai64572 жыл бұрын
  • 3:40. Well, that’s literally the strategy I’ve gone with for the past 2 years...

    @axelandersson6314@axelandersson63145 жыл бұрын
    • 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.

      @enriquejunchaya5784@enriquejunchaya57845 жыл бұрын
    • 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.

      @wthrwyz@wthrwyz5 жыл бұрын
    • @Nathan Williams -- "never move your largest value tile out of that corner" But sometimes that's the only move, alas.

      @wwoods66@wwoods665 жыл бұрын
    • Indeed, and the RNG gremlins are already chuckling.

      @wthrwyz@wthrwyz5 жыл бұрын
    • 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

      @edde2429@edde24295 жыл бұрын
  • Sorry I wasn’t performing well

    @Thomashorsman@Thomashorsman5 жыл бұрын
    • Try fuckin harder next time Thomas

      @romanboi8834@romanboi88345 жыл бұрын
    • 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.

      @cheesecake-ne2qh@cheesecake-ne2qh5 жыл бұрын
    • No hard feelings Nikolai.

      @Joseph_Drew_III@Joseph_Drew_III5 жыл бұрын
    • @@romanboi8834wanna go bowling?

      @alphapicturesentertainment@alphapicturesentertainment5 жыл бұрын
    • Thomas Horsman HOLY SHIT I'M DYING

      @lilithkramer6698@lilithkramer66985 жыл бұрын
  • 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.

    @owltactics5540@owltactics55402 жыл бұрын
  • Seeing you use processing is so nostalgic. Processing is fantastic

    @jackburg5595@jackburg55953 жыл бұрын
  • "what's up guys, today's video is in 2048" -code bullet accidentally reveals his origins

    @ocinnico2608@ocinnico26084 жыл бұрын
    • Flunkyvs Lacky well now it isn’t anymore, so let’s like it again to try and get 512

      @aang8026@aang80264 жыл бұрын
    • **420 likes** :) **likes**

      @c10v3r@c10v3r4 жыл бұрын
    • @@c10v3r But why?

      @evertree2133@evertree21334 жыл бұрын
    • I don’t get it

      @dougthedonkey1805@dougthedonkey18054 жыл бұрын
    • @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?

      @dougthedonkey1805@dougthedonkey18054 жыл бұрын
  • Code Bullet: “Alright, I think I’ll go to bed.” Thomas: “You’ll go to bed when we’ve reached 2048.”

    @JStubblefield79391@JStubblefield793914 жыл бұрын
  • I finally beat this game after so many years, I can die happy now

    @nbabackcourtmedia@nbabackcourtmedia2 жыл бұрын
    • @HelloThere nothing crazy it just says you won and you can keep going if you want

      @nbabackcourtmedia@nbabackcourtmedia2 жыл бұрын
  • coding is just "if" statements - a wise man 2021

    @shawnsimons418@shawnsimons4182 жыл бұрын
  • 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

    @LarryJL@LarryJL4 жыл бұрын
    • I would have thought that would be the one and only scoring method for future outcomes

      @fakename7725@fakename77253 жыл бұрын
    • 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.

      @varmituofm@varmituofm3 жыл бұрын
    • 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)

      @observable3194@observable31943 жыл бұрын
    • @@observable3194 I struggle getting past 4092 and I have spent way too much time playing 2048.

      @garethbaus5471@garethbaus54713 жыл бұрын
    • 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

      @frederickfritzsche97@frederickfritzsche973 жыл бұрын
  • 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.

    @BrianJones01@BrianJones014 жыл бұрын
    • i could neverrrrr reach 8196 how long did that take???

      @xocheee@xocheee3 жыл бұрын
    • @Natsu Dragneel lol do you mean score or tile? because i doubt youre dating the world record holder lmaoooo

      @xocheee@xocheee3 жыл бұрын
    • @Natsu Dragneel probably on the app where undos are possible too...

      @xocheee@xocheee3 жыл бұрын
    • @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!

      @BrianJones01@BrianJones013 жыл бұрын
    • My strategy is spam random buttons at the start then press random buttons

      @NoOne-wz2ht@NoOne-wz2ht3 жыл бұрын
  • You’re teaching me better than my professors did

    @dalvontah@dalvontah2 жыл бұрын
  • Bullet here explains the definition of camping “TOMMY KEEP TOP LEFT”

    @geezus7152@geezus71523 жыл бұрын
  • My highest tile is 8192. Take that thomas.

    @rcoverc@rcoverc5 жыл бұрын
    • One game where we are better... still

      @dragovern@dragovern5 жыл бұрын
    • 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.

      @thejman3489@thejman34895 жыл бұрын
    • @@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* :(

      @rcoverc@rcoverc5 жыл бұрын
    • I got to 512. Snake is more my game

      @CavemanNo.12@CavemanNo.125 жыл бұрын
    • I mean not trying to brag but...16384

      @MichaelTwitt@MichaelTwitt5 жыл бұрын
  • "Everyone has a right to an opinion, but not every opinion is right" I love it, I'm stealing it for future arguments!

    @sir_slimestone3797@sir_slimestone37974 жыл бұрын
    • opinions aren't wrong or right

      @mcplumpkin6191@mcplumpkin61914 жыл бұрын
    • @@mcplumpkin6191 whoosh that flew over your head

      @sir_slimestone3797@sir_slimestone37974 жыл бұрын
    • @@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.

      @mcplumpkin6191@mcplumpkin61914 жыл бұрын
    • @@mcplumpkin6191 yes they are, if your opinions collide with evidence, then they are wrong.

      @geli95us@geli95us4 жыл бұрын
    • @@geli95us they are based on thoughts and experiences.

      @mcplumpkin6191@mcplumpkin61914 жыл бұрын
  • 4 years later and i am still waiting for that enigma video.... you cant leave me hanging like this :(

    @zeonos@zeonos Жыл бұрын
  • You are my favorite KZhead channel man. Love this shit

    @calebdeming5515@calebdeming55152 жыл бұрын
  • "Yes, I can go to bed!" the typical software engineer saying after a project XD

    @VoVilliaCorp@VoVilliaCorp4 жыл бұрын
    • "I CAN, I just don't WANT to." - Typical Software Engineer ( not me)

      @ITAC85@ITAC853 жыл бұрын
  • CB: Since the difference between random movements and intelligent movements is very small... Me: Yes! I'm almost intelligent! edit: 1.5k likes :O

    @leonjefferson6783@leonjefferson67834 жыл бұрын
    • 100th like babyyyyy

      @sheeloesreallycool@sheeloesreallycool4 жыл бұрын
    • Lol

      @kosk-kosk2777@kosk-kosk27774 жыл бұрын
    • 881 like baby

      @whydoiexist1527@whydoiexist15274 жыл бұрын
    • 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

      @TheStoneBreak@TheStoneBreak4 жыл бұрын
    • @@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

      @losereye@losereye4 жыл бұрын
  • The video I been looking for for a WHILE

    @Homieonice@Homieonice2 жыл бұрын
  • ive never watched your channel on my pc and yet I've been recommended you, I don't mind

    @Azoperoa@Azoperoa2 жыл бұрын
  • ai learns to play agar.io

    @RqtiOfficial@RqtiOfficial5 жыл бұрын
    • David Simon And?

      @bluue5756@bluue57565 жыл бұрын
    • @@legoguney but *everyone* had to love it for some reason

      @bluue5756@bluue57565 жыл бұрын
    • David Simon how is it trash

      @art-oq1pi@art-oq1pi5 жыл бұрын
    • Someone allready made a bot for agar.io

      @mac1cam@mac1cam5 жыл бұрын
    • @@legoguney just Because it's old does not mean that it is bad

      @anton7591@anton75915 жыл бұрын
  • *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*

    @rasput1n6@rasput1n65 жыл бұрын
  • Crazy how much calmer and happier he sounded in his old videos

    @eyesak387@eyesak3872 жыл бұрын
  • 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.

    @MetaLemonaide@MetaLemonaide2 жыл бұрын
  • Every single AI video: It’s evolving, just backwards

    @zephyromenix8755@zephyromenix87553 жыл бұрын
  • If there was no visuals this would be the title: Man screams at someone (presumably his son) for 11 minutes and 10 seconds

    @kiweping5@kiweping54 жыл бұрын
    • I love it

      @maribelle1935@maribelle19354 жыл бұрын
    • tru

      @aliveandunwell430@aliveandunwell4304 жыл бұрын
    • 96 likes

      @Notathreelettername@Notathreelettername4 жыл бұрын
    • Go home you failure

      @jayseapplegate6965@jayseapplegate69654 жыл бұрын
    • Hi. you have the Tanki online logo photo I played back in the day, 2014 , 2015,2016,2017,2018.

      @ramonmazur9940@ramonmazur99403 жыл бұрын
  • 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

    @bryceboukater4618@bryceboukater46183 жыл бұрын
  • Congratulations on 6.9 mill views mate! Nice

    @cuteandcewl@cuteandcewl3 жыл бұрын
  • Code an Ai that can beat another Ai in chess

    @tysonmay5522@tysonmay55225 жыл бұрын
    • Wait wouldn’t it always be a tie or am I missing something

      @yolkeggs@yolkeggs5 жыл бұрын
    • Good point

      @tysonmay5522@tysonmay55225 жыл бұрын
    • There's a chess match for AI, though. It's quite intense and surprisingly complex.

      @InnocentC0@InnocentC05 жыл бұрын
    • @@yolkeggs let both ai know it can't end in a tie

      @BorkKillsOneLegMan@BorkKillsOneLegMan5 жыл бұрын
    • @@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".

      @diegocastro7434@diegocastro74345 жыл бұрын
  • The first generation is already better than me.

    @PandaFan2443@PandaFan24435 жыл бұрын
    • Nathan, i thought you were joking, but then I watched it. (I know you were joking even if it is true)

      @azadanzans5359@azadanzans53595 жыл бұрын
    • Agreed.

      @thegamezterb6615@thegamezterb66155 жыл бұрын
    • 445th like

      @mr.cringekid5117@mr.cringekid51175 жыл бұрын
    • it's true

      @mynewaccisecksspot6529@mynewaccisecksspot65294 жыл бұрын
    • Same

      @DerGecko92_old@DerGecko92_old3 жыл бұрын
  • When you realize that all AI models are still technically algorithms... just really obfuscated ones.

    @ArtamisBot@ArtamisBot2 жыл бұрын
  • Okay, that subtle fusion dance make me so happy inside

    @scruffybixweetabix2295@scruffybixweetabix22952 жыл бұрын
  • I have no clue what youre saying half the time but your channel is amazing

    @MJDev14@MJDev145 жыл бұрын
  • 1:36 “let’s see what happens when we press the up arrow - aaaand they’re gone” 😂😂😂

    @itsme.lucaaa@itsme.lucaaa4 жыл бұрын
    • Let's see what happens when we deposit this money, and its gone

      @jakobbarbian2893@jakobbarbian28934 жыл бұрын
    • Welcome to standing up school. And you failed..

      @yoak@yoak4 жыл бұрын
    • Helix Peli asdf movie.... And I love it

      @gjk-arts5855@gjk-arts58554 жыл бұрын
    • GJKtale - Gacha and undertale have you watched #12?

      @yoak@yoak4 жыл бұрын
    • Helix Peli only that 1-11 complitition

      @gjk-arts5855@gjk-arts58554 жыл бұрын
  • I still want that second enigma video... Or, to be fair, any video.. Just keep making videos please.

    @matthewp4046@matthewp40463 жыл бұрын
  • 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…

    @reubenransfield7914@reubenransfield79142 жыл бұрын
  • CB: keep the highest tile in the top left Tommy: how about... no?

    @SpeedySlothBoi@SpeedySlothBoi4 жыл бұрын
  • It's April 21 2019 still no part 2 of enigma machine

    @Crazy1793@Crazy17935 жыл бұрын
    • AceSpace April 22 now

      @moormonkey@moormonkey5 жыл бұрын
    • @@moormonkey Wow, amazing observation!

      @LegitosaurusRex@LegitosaurusRex5 жыл бұрын
    • Dustin 23

      @lightningstar-ng9tm@lightningstar-ng9tm5 жыл бұрын
    • @@lightningstar-ng9tm 24

      @ahabsalnikov6135@ahabsalnikov61355 жыл бұрын
    • down stairs stuff 25

      @-Berry.@-Berry.5 жыл бұрын
  • Seems like using NEAT to evolve an evaluation metric for the lookahead approach would be a useful fusion of the two methods.

    @maximthemagnificent@maximthemagnificent3 жыл бұрын
    • 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

      @noahtawil8793@noahtawil87932 жыл бұрын
    • Wow thats neat

      @MEANLEANBEAN@MEANLEANBEAN2 жыл бұрын
  • Antennas are perfectly recreating facial expression, it's awesome

    @thomasremillet4621@thomasremillet46213 жыл бұрын
  • He will single handedly create an AI that will destroy the world.

    @simplistxc6649@simplistxc66495 жыл бұрын
    • * Tommy launches nukes * *TOMMY NOOOOOOOOO*

      @farisakmal2722@farisakmal27225 жыл бұрын
  • Thomas: Is an AI and within 5 tries reaches 2048 Me: can’t even get to 512

    @jeffreythecow2392@jeffreythecow23924 жыл бұрын
    • I can barely get to 64

      @3_ormorecharacters@3_ormorecharacters4 жыл бұрын
    • A computer pressing random keys has gotten farther than I ever have.

      @WistfulAZ@WistfulAZ4 жыл бұрын
    • 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)

      @alexandrubragari1537@alexandrubragari15374 жыл бұрын
    • @@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.

      @teraspeXt@teraspeXt4 жыл бұрын
    • ATS Gaming you gave me challenge, im getting under 32 and i will never stop trying

      @williamsomlai141@williamsomlai1413 жыл бұрын
  • 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

    @mythicallegend1047@mythicallegend104710 ай бұрын
  • that moment when the segway was so good you didn't even realize it was an ad

    @humaneevee672@humaneevee6723 жыл бұрын
  • 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

    @agentstache135@agentstache1355 жыл бұрын
    • @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

      @Shennzo@Shennzo5 жыл бұрын
    • also the system behind the tiles added is much more complex in threes

      @seven_chords@seven_chords5 жыл бұрын
    • You're the Illuminati.

      @dominickeijzer5844@dominickeijzer58445 жыл бұрын
    • Of course it was released before 2048, it isn’t even 2048 yet! It’s only 2019!

      @Ferotiq@Ferotiq5 жыл бұрын
    • Wooosh. Edit: I wooshed myself.

      @dominickeijzer5844@dominickeijzer58445 жыл бұрын
  • **Instant click**

    @unrealcactus8546@unrealcactus85465 жыл бұрын
    • bro same

      @ginters5389@ginters53895 жыл бұрын
    • Видео наоборот Watch my KZhead channel it's about artificial intelligent taking over the world m.kzhead.info/sun/Y5ivdM2IoIKvgKs/bejne.html

      @sciencelover4079@sciencelover40795 жыл бұрын
    • Видео наоборотy

      @memes3620@memes36205 жыл бұрын
    • Видео наоборот yeah

      @shawnyewest6812@shawnyewest68125 жыл бұрын
    • is this guy a hacker???

      @Ida-xe8pg@Ida-xe8pg5 жыл бұрын
  • nobody: Code Bullet: DAM IT TOMMY EVERYTIME

    @lostsoccos2832@lostsoccos28322 жыл бұрын
  • when he said try not to subscribe too hard when making some squares on a screen I actually subbed.

    @rickybyrne4485@rickybyrne44853 жыл бұрын
  • This was even more hilarious to me because my real name is Thomas but I rarely go by that anymore.

    @meh3277@meh32775 жыл бұрын
    • TedDoesGaming then what the ham sandwich DO you go by

      @im_tlnor@im_tlnor5 жыл бұрын
    • Probably Tom

      @vigorouspringle8962@vigorouspringle89625 жыл бұрын
    • Vigorous dingle exactly my thought

      @aa-hf7hd@aa-hf7hd5 жыл бұрын
    • TedDoesGaming brother

      @dirtydan1887@dirtydan18875 жыл бұрын
    • Vigorous dingle I like your channel

      @dirtydan1887@dirtydan18875 жыл бұрын
  • _Ai learns how to take control of humanity_

    @Youmu_Konpaku_@Youmu_Konpaku_5 жыл бұрын
    • Y E S

      @thesadsalamander1282@thesadsalamander12825 жыл бұрын
  • when the music started playing I knew shit was about to go down.

    @henryfrollo3184@henryfrollo31843 жыл бұрын
  • This just popped up, I’m expecting a video in the next two weeks. KZhead 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

    @itsTomate@itsTomate3 жыл бұрын
  • 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.

    @Fattycheese73@Fattycheese735 жыл бұрын
    • 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.

      @boggers@boggers5 жыл бұрын
    • 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).

      @4xelchess905@4xelchess9055 жыл бұрын
    • 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.

      @jsmunroe@jsmunroe5 жыл бұрын
    • 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

      @danielfay8963@danielfay89635 жыл бұрын
    • 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.

      @daniellucas5522@daniellucas55225 жыл бұрын
  • 7:50 - 7:52 That made me laugh harder than it should

    @musashiaerostar4409@musashiaerostar44093 жыл бұрын
    • Me too XD

      @KitTheAnkafolk@KitTheAnkafolk2 жыл бұрын
  • "i couldnt be bothered and i wanted to do this more" damn bullet i relate to that.

    @demonkingt@demonkingt3 жыл бұрын
  • nobody: pokemon's game series in 2048: 4:16

    @drckargaming@drckargaming3 жыл бұрын
    • 😂

      @DerGecko92_old@DerGecko92_old3 жыл бұрын
  • 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.

    @judithjanneck1719@judithjanneck17195 жыл бұрын
    • I don't know.... Give more points to a right strategy moviment is not a bit cheating?

      @VandreBorba@VandreBorba5 жыл бұрын
  • Enigma!!! Gimme me Enigma!

    @ShashankPinchaG@ShashankPinchaG5 жыл бұрын
    • GIB MIR JETZT ENIGMA! SCHNELL! SCHNELL!!

      @azayles@azayles5 жыл бұрын
    • UPPP!

      @Luca-sg8zf@Luca-sg8zf5 жыл бұрын
    • Azy Die Deutschen sind überall xD

      @trueguy9847@trueguy98475 жыл бұрын
    • Shashank Pincha I am here!

      @jazzyboxer@jazzyboxer5 жыл бұрын
    • NEIN!

      @gojifan54gaming15@gojifan54gaming155 жыл бұрын
  • AWESOME VID !!!!!!!!!!!!

    @nitinsaxena4906@nitinsaxena49062 жыл бұрын
  • 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)

    @vel_kor@vel_kor3 жыл бұрын
  • I found your channel from the enigma video, would be great to see some more!

    @ryanzwe@ryanzwe5 жыл бұрын
    • Me toooo :)

      @benni2294@benni22945 жыл бұрын
  • At 9:07 your A.I. was within 5 moves of victory and it made the wrong move. Luckily he got there still anyway a few seconds later

    @Zandros@Zandros5 жыл бұрын
    • @CoRE Pyroz Right, Up, Left, Left. You're probably not looking at the same board configuration I am since the video is moving so fast.

      @Zandros@Zandros4 жыл бұрын
    • 9:08 up left left

      @achilleaustin@achilleaustin4 жыл бұрын
    • right, up, left, left( there are alot of other ways ive also seen to instantly solve it but whatever)

      @fuckdatmf3144@fuckdatmf31444 жыл бұрын
    • Yeah ikr down, right, up, left, left

      @jamesr7708@jamesr77084 жыл бұрын
    • Thomas seems to always wants to solve the block from top left to right so at 9:07 he wanted to solve the top far right block next??

      @elarrayhesohit4479@elarrayhesohit44794 жыл бұрын
  • 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.

    @Mothuzad@Mothuzad2 жыл бұрын
  • 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

    @StealthyDead@StealthyDead10 ай бұрын
  • 1:19 "They do a quick fusion dance..." Instantly subbed

    @juliloafers@juliloafers5 жыл бұрын
  • YOU PROMISED US!

    @jerrygeorge4478@jerrygeorge44785 жыл бұрын
    • +

      @boggless2771@boggless27715 жыл бұрын
  • Videos like code bullets make me want to learn how to code.

    @bradysmeyers5950@bradysmeyers59503 жыл бұрын
  • 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.

    @zimne5212@zimne5212 Жыл бұрын
    • 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

      @jakerussell135@jakerussell1359 ай бұрын
    • @@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.

      @zimne5212@zimne52129 ай бұрын
    • @@zimne5212 try searching "839952" here on KZhead. 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

      @jakerussell135@jakerussell1359 ай бұрын
  • I clicked the subscribe button twice. I was already subscribed tho

    @eing7025@eing70255 жыл бұрын
    • When you walk 😂

      @lochuynh6615@lochuynh66155 жыл бұрын
    • there was no point of commenting that well done

      @wiredfpz7496@wiredfpz74965 жыл бұрын
    • Eing subscribe-unsubscribe-subscribed again. Thanks Eing, Very cool!!

      @Parker05@Parker055 жыл бұрын
  • me: *hears over-dramatic royalty-free music* also me: yeah dis the one

    @sacobred8400@sacobred84004 жыл бұрын
  • For those curious like me of the BGM in 8:18, its; "25-03: There Is Nothing Left to Say or Do (Short Version)"

    @ThatOneGuyYaKnow@ThatOneGuyYaKnow5 ай бұрын
  • Thomas: I looked into the future and I saw death Also Thomas: Guess I'll die

    @thelonesculler@thelonesculler3 жыл бұрын
  • "my man thomas looks 5 moves into the future" This is King Crimsons ability

    @Raff-mu5qc@Raff-mu5qc4 жыл бұрын
  • I wonder how long it would take thomas to get to the 131072 tile. It would require a large amount of luck with tiles and probably takes trillions or more trials

    @zxt327@zxt3275 жыл бұрын
    • ZX T I wonder that too. I had the same game going for months. Of course I didn't play it everyday. But it took forever. Mainly cause I had to fix mistakes. And of course it wasn't 4X4.

      @fotwen@fotwen5 жыл бұрын
    • thommy will just print a tile with 131072 on it and call it gg

      @chinesebaloni@chinesebaloni5 жыл бұрын
    • @@fotwen Have you tried the 5D? 2x2x2x2x2? (2x2 grids layed out in two 2x2 grids, wasd within a grid, rf to go up, qe for within the two metagrids, and zx to swap between those). Since it's 32 empty tiles instead of 16, two tiles spawn with each move.

      @flabort@flabort5 жыл бұрын
    • @@TheeCK1357 It can, it's the theoretical maximum possible with a 4x4 grid. It requires a perfect arrangement of tiles to reach, and a 4 MUST spawn in the empty tile.

      @xanderh2404@xanderh24045 жыл бұрын
    • It can fit that but I had that block in the bottom left corner and the 4 in the bottom right. All other tiles where occupied by their highest possible value

      @garrettbowes4878@garrettbowes48785 жыл бұрын
  • AI learns how to code AI to create AIs to Code other AIs that creates the original AI

    @DarknessTheDragon640@DarknessTheDragon6403 жыл бұрын
    • and we're all dead

      @deusexps4619@deusexps46193 жыл бұрын
    • Yes

      @DarknessTheDragon640@DarknessTheDragon6403 жыл бұрын
  • 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

    @ShockingRotom@ShockingRotom3 жыл бұрын
KZhead