AI learns to play Asteroids

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • Using neuroevolution I trained an AI to play the game Asteroids and it nailed it.
    If you enjoy what I do and want more please consider supporting me on patreon
    / codebullet
    Check out the source code
    github.com/Cod...
    music from flying tunes
    / channel
    songs used
    • Video
    • Video
    • Video

Комментарии • 1,9 тыс.

  • @CodeBullet
    @CodeBullet  6 лет назад +611

    Source code is up
    github.com/Code-Bullet/AsteroidsAI
    check it out if ya want

    • @glitchedjson4042
      @glitchedjson4042 6 лет назад +6

      I was just about to ask for the source code, and then I saw your comment! Thanks! :D

    • @belugaval144
      @belugaval144 6 лет назад +2

      can you make a tutorial on how to download and tinker with the source code?

    • @Praise_FSM
      @Praise_FSM 6 лет назад +6

      it would be cool if you explained how the neural networs worked

    • @painplayer1614
      @painplayer1614 6 лет назад +1

      Code Bullet dude. Try lunar lander or centipede. That would seem crazy

    • @painplayer1614
      @painplayer1614 6 лет назад

      I mean if you wouldn't mind. I don't wanna sound demanding lol

  • @forksunlimited
    @forksunlimited 6 лет назад +2019

    The next logical step is to teach the AI how to play Dark Souls.

    • @julioau
      @julioau 6 лет назад +23

      ForksUnlimited lol

    • @RipleySawzen
      @RipleySawzen 6 лет назад +194

      50 years from now, Skynet, remembering the torture humanity put it through in infancy, finally decides to kill mankind.

    • @Waelly17
      @Waelly17 6 лет назад +6

      RipleySawzen clever

    • @wutwut3628
      @wutwut3628 6 лет назад +2

      fuck no

    • @justiciar1964
      @justiciar1964 6 лет назад +5

      apparently someone did one already
      ruclips.net/video/xPrB8jJ4oGU/видео.html

  • @hydrogenbomber3267
    @hydrogenbomber3267 4 года назад +250

    honestly, i was expecting the AI to stand still and shoot any asteroids that comes into the screen at an incredible speed.

    • @tekmekster
      @tekmekster 4 года назад +9

      seems like not able to shoot until the previous shot disappears

    • @99baking
      @99baking 4 года назад +8

      This AI would get there eventually, neural networks won't give you the "best strategy" until thousands of generations have passed

    • @assassinonprozac
      @assassinonprozac 3 года назад +5

      @@tekmekster I’m 90% sure you can maybe not in this version but in the original arcade game you can.

  • @einflinkeswiesel2695
    @einflinkeswiesel2695 4 года назад +353

    AI: I'll try spinning that's a good trick

    • @kamenraider1175
      @kamenraider1175 4 года назад +13

      Should've tried the high ground

    • @jotarokujo3603
      @jotarokujo3603 4 года назад

      👍 I wanna like this shit twice.

    • @Channel-nd5fo
      @Channel-nd5fo 4 года назад +3

      I mean it could be it allows it to essentially see in a circle vs just lines

    • @jotarokujo3603
      @jotarokujo3603 4 года назад

      Channel 2 please, it’s just a meme reference. How about we not analyse the actual effectiveness and just giggle at a stupid 20 year old joke which is still hilarious.

    • @donkeyface4452
      @donkeyface4452 4 года назад

      Hello there

  • @Diabhork
    @Diabhork 4 года назад +93

    Gen 1: I think I will spin *randomly gets higher score*
    Gen 300: Spin2Win

  • @hugovankeulen5115
    @hugovankeulen5115 6 лет назад +810

    "I'll try spinning, that's a good trick!"
    AI = young Anakin

    • @paulmichaelfreedman8334
      @paulmichaelfreedman8334 6 лет назад +12

      That one cracked me, brilliant one mate

    • @harrymack3565
      @harrymack3565 6 лет назад +4

      LOL

    • @smartfrenandromax6651
      @smartfrenandromax6651 6 лет назад +3

      Hugo van keulen | Well, young Anakin Skywalker's trick seemed to have earned the AI at least 74 points. See also 'The Last Starfighter's Death Blossom'.
      ruclips.net/video/nmPGuMGs8cg/видео.htmlm22s

    • @Archande
      @Archande 6 лет назад +1

      LOL

    • @500monkeys9
      @500monkeys9 6 лет назад

      Smartfren Andromax Amazing

  • @elfenbeinturm-media
    @elfenbeinturm-media 6 лет назад +654

    The reason for the spinning might be the crippled "sight" of the AI only in eight directions; only with spinning its able to look what is happening in the dead blind spots.

    • @connorschultz380
      @connorschultz380 5 лет назад +38

      That would depend on how he developed them, Turing may not effect there line of site at all, he dose describe it as part of there movement.

    • @NeoluceKV
      @NeoluceKV 5 лет назад +2

      i should have read the comments before making mine :V

    • @KineticManiac
      @KineticManiac 4 года назад +24

      @@SimonWoodburyForget While you do have a point, I think you shouldn't forget spinning increases the possibility that any asteroids that are currently invisible will be visible in the future frames. While AI doesn't have any knowledge of "future frames", its decisions still do effect them. Spinning may have increased its survival chance by letting it eventually see any asteroid, even though AI itself isn't aware this is what's going on (kind of similar to how our instincts allow us to survive, even though we don't actually think about them, AI may have developed a spinning "instinct"). Then again seeing the second part of this video, I'm not too sure anymore.

    • @KineticManiac
      @KineticManiac 4 года назад +19

      @@SimonWoodburyForget And the AIs that spin with an rps of 60 will die where as those that spin with, say, 17 will survive. I fail to see how what I said is completely incorrect, the AIs will just evolve to NOT spin at 60 rps, but at a more reasonable speed.

    • @KineticManiac
      @KineticManiac 4 года назад +3

      @@SimonWoodburyForget I've taken the time to think about this, and I came up with 4 possibilities. Basically, it depends on how CB actually implemented this (which means I should check out his code... maybe later). Anyways, here are the 4 possibilities I can think of:
      1. Angular velocity is constant. This seems to be the most common way of making this game, as it is the way it is done in the most versions I've played. In this case, spaceship's rotation doesn't speed up or slow down, it either rotates or not. I believe that the AIs would choose to rotate in this case, as it will allow them to see the whole screen eventually, giving higher scores, thus more production.
      2. Angular velocity is not constant, and AIs are given their angular velocity as an input. I believe that if angular velocity is not constant, then AIs should get to know it, through an extra input. In this case, AIs could also use rotation as a technique to see the whole screen (even though they never realize it, due to their lack of a memory), because they can keep their angular velocity at a constant number, by speeding up when they're too slow, and slowing down when they're too fast. They won't actually know they are speeding up and slowing down, since the angular velocity will look just like any other input to them, they have no idea its actually something they control, but they can control "angular acceleration" output based on "angular velocity" input. So I believe it would work. This is essentially the case I've considered in my last comment.
      3. Angular velocity is not constant, not known to AIs, and there is a maximum angular velocity. I mean it's sort of awkward to let these spaceships speed up as much as they want. In this case they can constantly try to speed up, and they will get stuck once they hit the maximum angular velocity, without even knowing they've hit it, or they're stuck. I believe the final result will be similar to case 1.
      4. Angular velocity is not constant, not known to AIs, and there is no maximum angular velocity. In this case, it gets a bit complicated. Theoretically, what you said can happen here, because they don't know what speed they're rotating at. However, practically speaking, I believe there still may be an evolutionary advantage to spinning. Think about it, it's going to take a long time before they reach that unlucky 60 rps. I mean there are some other unlucky numbers out there besides 60, but even those will take some time. They could still get to very high scores until then. So I think that they would still favor spinning over not spinning, since they would prefer dying late and with a higher score, over dying early and with a lower score.

  • @PannicButtonn
    @PannicButtonn 4 года назад +52

    The AI was just practicing how to consistently 360 no-scope, because aiming normally is to easy

  • @bawy2143
    @bawy2143 6 лет назад +737

    "Revolutionary idea
    Spinning + shooting"
    Spinning... Revolutionary...
    * Sigh *

    • @cameronweaver6991
      @cameronweaver6991 5 лет назад +3

      I knew I was going to find at least one comment like this but you got a cringe so you get a like 😂

    • @NoName-qj6of
      @NoName-qj6of 5 лет назад +3

      Umm mistake in bold ill fix it foh ya
      *Sigh*

    • @jaredhettenhouser4652
      @jaredhettenhouser4652 5 лет назад +4

      thats quite the pun you found there
      its pretty
      pun-derful
      :D
      I'll see myself out....

    • @ellitri9677
      @ellitri9677 5 лет назад +1

      Bawy21 *FIDGED SPINNERS INTENSIFIES*

    • @assassinonprozac
      @assassinonprozac 3 года назад

      I get it!
      _i don’t get it_

  • @teoornelas
    @teoornelas 6 лет назад +665

    Did you ever consider that spinning was AI's way of improving its vision, much like a rotating radar antenna?

    • @MrCertainlyNot
      @MrCertainlyNot 6 лет назад +50

      Actually, the AI can only see in lines in 8 directions. There are definite gaps in the vision for farther away asteroids. See the visual near the start of the video.

    • @tristrumandrewsfisho339
      @tristrumandrewsfisho339 6 лет назад +115

      Spinning would also give it the ability to judge the size of objects as well as the objects direction (ie if its moving perpendicular to it as well as it's perceived closer or further)

    • @bentleykennedy-stone673
      @bentleykennedy-stone673 6 лет назад +56

      I think the spinning is just the easiest way for it to understand aiming. It would have to think a lot more steps ahead before it would be ready to choose to stop spinning.

    • @888twebb
      @888twebb 6 лет назад +9

      I wondered this as well. I’m also curious what coordinate system the ai calculates in. I feel like this would work very well in an r-theta coordinate system but it would be interesting to know if changing between r-theta and x,y,z makes any difference to the rate of learning. I assume it would only change the amount of calculation effort the ai is going through.

    • @unbreakaskull7679
      @unbreakaskull7679 5 лет назад +3

      The spinning is in reference tothe screen, not the way that the ship is facing.

  • @TheWeirdlyenough
    @TheWeirdlyenough 6 лет назад +421

    I think what you are doing is bloody fascinating

    • @Madoc_EU
      @Madoc_EU 6 лет назад +5

      alex jackson Oh yes, all the face nation.

    • @TheWeirdlyenough
      @TheWeirdlyenough 6 лет назад +2

      Matthias J. Déjà oh yes i could not help but redo my spelling on that one haha.

    • @Madoc_EU
      @Madoc_EU 6 лет назад +1

      Cool! It was pretty funny though.

    • @thatelusivedot
      @thatelusivedot 6 лет назад +1

      alex jackson too right dude

  • @mrk1867
    @mrk1867 6 лет назад +83

    Meanwhile in the A.I. mind's "You spin me right 'round, baby, right 'round. Like a record, baby, right 'round, 'round, 'round"

  • @thegovenor6166
    @thegovenor6166 6 лет назад +712

    I wonder what would happen if an ai learned to make, launch and land a rocket successfully in kerbal space program?

    • @cthulhujankinx5652
      @cthulhujankinx5652 6 лет назад +26

      Totally thinking the same thing

    • @a_random_tank_152mm7
      @a_random_tank_152mm7 6 лет назад +90

      It would either take a huge ton of programing or take a lot of time for it to learn. Probably both.

    • @blak4831
      @blak4831 6 лет назад +87

      If nothing else, you'd need a really powerful computer with room to simulate a lot of neurons, as the amount of inputs and outputs needed for a game like that would be monstrous

    • @MrJellyman223
      @MrJellyman223 6 лет назад +75

      There's a reason why these AI videos are always on simple old games. That shit gets really complicated really quickly.

    • @wb5629
      @wb5629 6 лет назад +1

      Surely possible nowadays😂😂😂

  • @Izandaia
    @Izandaia 6 лет назад +196

    At first I thought that the constant spinning was just an amusing artifact from the AI's oldest ancestors (because in the first gens spinning and shooting randomly was the best they could do), but after seeing you play (I'd never actually played this or played it myself) I realized that it's actually a really good strategy. When you can fire the engines with the split second precision of a computer constantly spinning gives you far more mobility than you were ever supposed to have.

    • @justarandommimikyu8474
      @justarandommimikyu8474 5 лет назад +24

      Depending on how the sight was programmed, it might also allow it to see in the blindspots that the 8 directions of sight don’t normally cover.

    • @TaHame1
      @TaHame1 5 лет назад +12

      @@justarandommimikyu8474 so a combo of spinning radar vision and hyper accurate shooting at any moment, and the grace of a caffeinated ballerina all in one....sweet!

    • @georgecopeland5426
      @georgecopeland5426 4 года назад +2

      Maybe you are right but I have seen expert players of this game and they perform a maneuver that I would call strafe--They maneuver to allow a large asteroid move directly in front of them, and then they unleash a constant stream of shots in a straight line that obliterates every single secondary asteroid until they are all obliterated. This super-skilled technique is the expert strategy to super high scores and the AI never learned it. There is no way that a spinning ship could do this maneuver because even if the AI could calculate it the ship is not capable of such straight line shooting while spinning. So, the AI still has a long way to go to achieve expert scores.

  • @MsCherryKiss
    @MsCherryKiss 4 года назад +50

    why do I hear Anakin Skywalker: "Spinning is a nice trick!"

    • @overloader7900
      @overloader7900 4 года назад

      Apparently yes

    • @inigo8740
      @inigo8740 4 года назад +4

      "I'll try spinning, that's a *good* trick!"

  • @epsilonthedragon1249
    @epsilonthedragon1249 6 лет назад +23

    “Revolutionary idea: spin and aim”
    Because that’s totally not how I used to play ALL THE TIME because I disliked the moving mechanics of Asteroids.

  • @drdca8263
    @drdca8263 6 лет назад +200

    Is that Ultra Instinct Asteroidsship?!

  • @seanjhardy
    @seanjhardy 6 лет назад +106

    ai to play space invaders but all the invaders are controlled by separate neural networks and guided by the evolution of survival in a constant race to outdo the opponent, maybe you could use a convolutional neural network for this? anyway amazing video :D

    • @MrRyanroberson1
      @MrRyanroberson1 5 лет назад +12

      try "darwin's demons", it's a game where your enemies evolve to live the longest and kill you the most frequently. if you're clever, that'll be to your great advantage.

    • @baguettedepain3975
      @baguettedepain3975 4 года назад +5

      How would you use the convolutional layers ?
      Just curious.

  • @atlmyk
    @atlmyk 6 лет назад +50

    After 999 Generations you get Skynet.😨 So don't let it run overnight, or feed it after midnight

    • @skywarslord4680
      @skywarslord4680 5 лет назад +2

      Am I the only one who doesn’t know what sky net is?

    • @letonyurquidi3639
      @letonyurquidi3639 5 лет назад

      @@skywarslord4680 it's from terminator

    • @skywarslord4680
      @skywarslord4680 5 лет назад

      Oh k

    • @OUsniper1
      @OUsniper1 4 года назад +1

      @@skywarslord4680 Am I the only one who knows what 'don't feed it after midnight' means?

    • @Apollyon67
      @Apollyon67 4 года назад

      @@OUsniper1 Nope.

  • @PotitoDestroyer3000
    @PotitoDestroyer3000 5 лет назад +10

    "I would love to dedicate more time to doing this but I need to eat"
    Best phrase i never read in my entire life xD

  • @DX413RB8
    @DX413RB8 6 лет назад +198

    he went ultra instinct lmao

    • @gregorygregson1974
      @gregorygregson1974 6 лет назад +8

      Xenojie I was scrolling through the comments looking for someone to mention the music 😂

    • @lampoilropebombs0640
      @lampoilropebombs0640 4 года назад +1

      Gen 1: baby goku
      Gen 6: goku(dB)
      Gen 18: goku(dbz)
      Gen 304: goku(dbs)

  • @user-bd2bk3kc7k
    @user-bd2bk3kc7k 6 лет назад +95

    I read it as: AI learns to use steroids

    • @polk-e-dot8177
      @polk-e-dot8177 6 лет назад +8

      well they dont always learn the right thing to do.

    • @valiantlaceda1911
      @valiantlaceda1911 5 лет назад +2

      I was looking for someone who read ASTEROIDS as STEROIDS, and gladly I think I maybe found it hehe.

  • @princeninurta5767
    @princeninurta5767 4 года назад +11

    "Not 'he'...'it', don't be naive."
    John Connor from Terminator Salvation.

  • @YozhiMitsu
    @YozhiMitsu 4 года назад +17

    Imagine. The rocket moves over to the left of the screen and disappears out of sight, but does NOT reappear on the right 😕 it's gone! 6 months go by, and everything seems fine..... Until....

  • @sergiorequenense1474
    @sergiorequenense1474 6 лет назад +205

    I think they spin because they can only see in 8 directions so they try to see everything they have around

    • @jotrick3r355
      @jotrick3r355 6 лет назад +4

      I have the same thing going on my mind

    • @vib80
      @vib80 6 лет назад +22

      Yeah, it's probably just a good local maximum strategy in general with the model... it isn't tracking asteroids, so it doesn't really have object permanence on them. Rocks are just there and not there... no telling if things are different rocks. So quickly spinning provides the benefit of providing near constant opportunities in every direction for shooting or dodging.

    • @josefranco480
      @josefranco480 6 лет назад +3

      Ideally since it's looking in all 8 directionality would just osciliate between turning cc 45° then CCW 45° since with 8 way vision that would 'fill the full circle of vision'

    • @vib80
      @vib80 6 лет назад +20

      The problem with an oscillation is that means turning around and covering the areas you just covered instead of continuing forwards and covering the areas you've covered least recently. It's better to just sweep around like an old radar screen.

    • @kalisticmodiani2613
      @kalisticmodiani2613 6 лет назад +33

      There's no penalty for spinning. If there was, the AI could probably learn to spin less.

  • @mitsync
    @mitsync 6 лет назад +379

    I can tell you you will blow up soon! This is amazing!

    • @CodeBullet
      @CodeBullet  6 лет назад +18

      I'm glad you liked it

    • @RidaLovesRoblox
      @RidaLovesRoblox 6 лет назад +13

      Code Bullet just remember to eat, we can wait

    • @jamesgrimwood1285
      @jamesgrimwood1285 6 лет назад +14

      Next video - AI learns how to produce youtube videos ;)

    • @fqidz
      @fqidz 6 лет назад +1

      U want him to explode and die!?!
      Rude
      Jk

    • @WaterDroplet02
      @WaterDroplet02 6 лет назад

      code bullet or the ship?

  • @thirstfast1025
    @thirstfast1025 4 года назад +3

    When I learned this game, it took me weeks to realize the ship moved. That blew my mind and added such an element of instability to my strategy.....

  • @Starlight_Joker
    @Starlight_Joker 6 лет назад +120

    I’m slightly offended that you didn’t use the beyblade theme song

  • @realdragon
    @realdragon 6 лет назад +247

    AI learns to play lunar landing

    • @olam4642
      @olam4642 6 лет назад

      This is such a great idea!

    • @johnk.u.7992
      @johnk.u.7992 6 лет назад

      Do it

    • @carginfer2353
      @carginfer2353 6 лет назад +4

      I was never able to learn how to not crash so it will be interesting to see the strategies the AI comes up with. :3

    • @koltafrickenfer
      @koltafrickenfer 6 лет назад

      ruclips.net/video/EZ5rxSCGUw4/видео.html

    • @darkfur18
      @darkfur18 6 лет назад +3

      Elon Musk might take an interest if he does it.

  • @louiserocks1
    @louiserocks1 6 лет назад +53

    I love the way you write in your videos, it's so lol. don't change that

  • @SabaothChristou
    @SabaothChristou 4 года назад +4

    Spinning rapidly is actually an interesting approach if you can control when you're thrusting/firing very precisely... On the timescales you care about you can pretty much thrust/fire in any direction you want just by timing it well.

  • @42069memes
    @42069memes 6 лет назад +23

    Died when i heard that ultra instinct music lmfao

  • @jontedeakin1986
    @jontedeakin1986 6 лет назад +206

    two ai pong players against each other

    • @mint530
      @mint530 6 лет назад +10

      Jonte Deakin DO YOU WANT TO DESTROY THE WORLD
      If yes please respond

    • @jontedeakin1986
      @jontedeakin1986 6 лет назад +3

      TinyGaming // tinydemonic i get to get out of school

    • @jontedeakin1986
      @jontedeakin1986 6 лет назад +3

      matis you could speed the game up over time

    • @8iter
      @8iter 6 лет назад +5

      You could play against it after each evolution and see how good it gets 😂 or add mods that make it easier for u and see how the ai reacts

    • @-._
      @-._ 6 лет назад

      I once tried it with a neural network, but i just got the player follow the Ball instead of guessing where it will land.

  • @mob8502
    @mob8502 6 лет назад +97

    I can’t donate sorry, I’ll do the next best thing I’ll share these videos with my friends and subscribe. Hope that’s enough to help you make more videos. Much love,
    Dk Baller ❤️

  • @hunterchewning6725
    @hunterchewning6725 6 лет назад +3

    I love how the AI is just a spinning maniac the whole time.

  • @AnterRainbowSiege
    @AnterRainbowSiege 4 года назад +1

    I’m glad your going to university and your vids are outrageously funny and best channel I’m seen in a long time

  • @Killer-zz6rc
    @Killer-zz6rc 6 лет назад +118

    What about an ai that plays Tetris. Btw love the videos ☺

    • @julianbello8376
      @julianbello8376 6 лет назад +3

      It'll pause befotlre death

    • @durdleduc8520
      @durdleduc8520 6 лет назад +6

      101 wiz Wasn’t that just what one ai did once and got really popular for doing?

  • @toddherron8778
    @toddherron8778 6 лет назад +18

    First generations are hilarious

  • @lm601
    @lm601 6 лет назад +2

    3:30 They havent forgotten how to aim, they‘re shooting the asteroids through the screen border. Those hit so many times, it can‘t be coincidence.

  • @ozansaglk6485
    @ozansaglk6485 6 лет назад

    Man I've been watching your videos for some time and they're amazing! They show me a hint what a future may look like.. Keep doing what you are doing!

  • @sanctifyer1885
    @sanctifyer1885 6 лет назад +3

    This is pretty unique, and we all understand it takes time to code this stuff, we love your videos, don't stress about the time it takes to get a video up :D

  • @cmgriffith
    @cmgriffith 6 лет назад +11

    7:40 Love the Dragon Ball Super music! (duh)

  • @sheepcommander9445
    @sheepcommander9445 5 лет назад +2

    4:26 " And He's Gone" youtube shows ad in my face me:"and so am I"

  • @XLNCEsports
    @XLNCEsports 6 лет назад +3

    "Let's try spinning! That seems like a good idea!"

  • @anthonyiannazzone8391
    @anthonyiannazzone8391 6 лет назад +3

    Here are a few recommendations of games I would enjoy seeing an AI play:
    Tetris
    Pac-Man
    Centipede
    I know all of these would be hard to do but they are just recommendations

  • @lilricefield6948
    @lilricefield6948 6 лет назад +12

    AI that can play the worlds hardest game.

    • @calldres9544
      @calldres9544 6 лет назад +6

      The Hint I think they're referring to the game that's called "the world's hardest game"

  • @skiller5034
    @skiller5034 6 лет назад +3

    RUclips : "We'll mail you a decision, usually within a week."
    ~6 months later...

  • @Xamothth
    @Xamothth 6 лет назад

    Two points:
    -First, this is awesome to watch and i definitely want to look into your code cause you got me really interested in how this works !
    -Second, your little comments are hilarious and i can't stop laughing (i'm watching this at work, help)
    Keep up the good work !

  • @LionBrine
    @LionBrine 6 лет назад +40

    Would really like to see how you make these programs, how you create an enviroment for them, how to use nuero evolution. I dont want to steal your ideas/videos, I just really love comp sci. Also would like to know about your university. Thanks :)

    • @dolevgo8535
      @dolevgo8535 6 лет назад

      this

    • @shahzaib.q9499
      @shahzaib.q9499 6 лет назад

      yeah

    • @dannygjk
      @dannygjk 6 лет назад

      You have to study CompSci. There is no magic shortcut to accomplishing these things. You don't have to go to school, you can self teach, but there are no short cuts.

    • @joecolvin4203
      @joecolvin4203 6 лет назад

      There was a book called "Programming Game AI by Example" and I would recommend "Begining C++ Through Game Programming" should get you off to a good start.

  • @cyanideandsleepytime6860
    @cyanideandsleepytime6860 6 лет назад +8

    These videos are super cool! I've never actually watched deep-learning AI (correct me if that's the wrong term) in action. Keep it up Code Bullet.

    • @CodeBullet
      @CodeBullet  6 лет назад +6

      cheers
      i used the term deep learning in my first video and got cyber bullied
      apparently thats a no go
      so I use neuroevolution
      but anyway thanks

  • @kurtisisreallyangry4742
    @kurtisisreallyangry4742 4 года назад +2

    Only by watching this I appreciate the amount of time it must’ve taken to code the call of duty bots.

  • @user-gr2wy8no3v
    @user-gr2wy8no3v 4 года назад +3

    Nobody
    Ship: S P I N

  • @stapler1636
    @stapler1636 6 лет назад +12

    If you're majoring in CS maybe you could consider talking to your professors and seeing if any of them will let you do projects such as these for credit. On another note, no source code this time?

    • @CodeBullet
      @CodeBullet  6 лет назад +2

      yeah that would be nice, I'll have a talk to them
      also source code is up

  • @wdnoob5328
    @wdnoob5328 4 года назад +3

    important thing- AI is actually an aimbot

  • @noobhero6661
    @noobhero6661 3 года назад

    you said no one suggested it, but would have. I have been following you for almost a year now, and found this because i was wanting to see playthroughs of astroids and you were at the top

  • @THOMASTTWYFORD
    @THOMASTTWYFORD 6 лет назад

    i really like these videos!! i feel like I have learnt quite a bit about AI from your efforts!! thanks and well done from the Gold Coast AU

  • @arch758
    @arch758 6 лет назад +13

    everyone is saying tetris or other 2d games. if you teach an ai to play a 3d game (say like the original wolfenstein since its simple) then your channel would blow up for sure

    • @TiagoTiagoT
      @TiagoTiagoT 6 лет назад

      That game's not even really 3D; it's a 2D game rendered with 3D graphics.

    • @GakisStylianos
      @GakisStylianos 6 лет назад +1

      You realize how much harder that would be for the ai right?

    • @arch758
      @arch758 6 лет назад

      yes i do realize. that is why i suggest he moves on from something easy and challenges himself.

    • @GakisStylianos
      @GakisStylianos 6 лет назад

      I am literally talking about the processing power that would need, a game like that has so many more options than just for example in snake continue moving, go right or go left. Aside from the programming part, it would require a better computer or much much more time as well.

    • @TiagoTiagoT
      @TiagoTiagoT 6 лет назад

      Stylianos Gakis - Old games like Wolfenstein and Doom don't have much more ways to move than Snake or Asteroids; you can move, you can rotate, you can select weapons and you can shoot, and that's it. I'm not sure about Wolfenstein, but Doom is open source, so he could strip away all the graphic rendering stuff and need just a little more processing power than what was required for Asteroids; then record all the data and then play it back with graphics to record the video.

  • @samosa_kachori
    @samosa_kachori 6 лет назад +5

    Love your videos.😘
    Please make an introductory video on how to make AI.

  • @christianschweda2530
    @christianschweda2530 6 лет назад

    I really like your dedication and your sense of humor, really had some good laughs.

  • @calvindehoff9045
    @calvindehoff9045 Год назад

    Wow, it’s crazy to see how far code bullet has come in these 5 years, good for you man

  • @henriquecarballoaranha9100
    @henriquecarballoaranha9100 5 лет назад +10

    Nobody:
    Spaceship AI: *YOU SPIN ME RIGHT ROUND, BABY, RIGHT ROUND*

  • @adamadam-bv9gr
    @adamadam-bv9gr 5 лет назад +9

    Imagine whole human specie throughout history being just iteration letting god play his asteroids better

  • @Oxmond
    @Oxmond 4 года назад +1

    The original Asteroids gameplay is still AWESOME! 🚀 💫

  • @KingKevin108
    @KingKevin108 5 лет назад +1

    I love that it went Ultra Instinct at the end there

  • @gediminasbijeikis6256
    @gediminasbijeikis6256 6 лет назад +14

    probs not the first one to say but consider teaching AI to play poker and you are sorted

  • @pierreperegrindemaricourt8379
    @pierreperegrindemaricourt8379 6 лет назад +6

    Gen 304 is such a ninja.

  • @rayperrault1538
    @rayperrault1538 6 лет назад

    I know nothing about coding or programming but still find these videos pretty cool. Watching the process of an AI learn is interesting and the way it goes from randomly trying different things until it finds what it is it needs to do is neat lol.

  • @notherdimension100
    @notherdimension100 6 лет назад

    You sir have just earned a sub for your hard work, patience, and dedication for making awesome AIs to retro games. Keep up the hard work!

  • @bulldawg4498
    @bulldawg4498 4 года назад +5

    The next step: teach AI to play "global thermonuclear war" ...

    • @oegoe
      @oegoe 4 года назад +1

      No let's not do that. I wanna live some more :(

    • @jackabram1534
      @jackabram1534 4 года назад

      Bulldawg
      greetings professor falken care for a nice game of chess?

  • @pinacjoshi859
    @pinacjoshi859 6 лет назад +29

    make it so ai plays geometry dash

  • @KarmaCifer
    @KarmaCifer 5 лет назад +2

    "If you had mastered the spinning technique then you wouldn't be in the bloopers. Learn from me you human"
    Atte: the master AI of this game

  • @riffsix
    @riffsix 3 года назад +1

    "I shoot and sometimes I get rewarded with score.
    Therefore, shoot as much as possible."
    (The first 40 some generations in a nutshell)

  • @miask8er
    @miask8er 6 лет назад +4

    This stuff is great! Will we ever see you try this out in 3 dimensional games?

  • @Boslandschap1
    @Boslandschap1 6 лет назад +3

    Love your videos. I had a question for the Asteroids game: would it be interesting to associate a cost to turning/spinning or moving the ship? I would hope that would lead to a more "human" behaviour because it might help to wield out "unnecessary" movement so that the deliberate actions of the network become more visible.
    As for game suggestions, your apparent preference for classic 70's/80s games is spot on as they are well known to your public and have an attractive simplicity, which helps setting up your experiments. Staying with the theme: maybe games like missile command or paratrooper? Paratrooper has an additional tactical level as you need to consider how many paratroopers have already landed to the right or left of your cannon, which may be interesting to see if the AI picks up on that aspect.

    • @ninjafruitchilled
      @ninjafruitchilled 6 лет назад

      Bos Landschap Missile command would be entertaining to watch

  • @reiss7219
    @reiss7219 6 лет назад

    Amazing videos, hands down best yt channel!

  • @shawnthomas7641
    @shawnthomas7641 6 лет назад

    2:50 thank u for not making assumptions i rlly respect that

  • @iden63
    @iden63 6 лет назад +4

    If movies have taught me anything then there has to be a smart science type person at your school that is working on some revolutionary new cloning technology. So then you could spend more time putting together these cool videos

  • @_dr_ake
    @_dr_ake 6 лет назад +4

    I'll try spinning, that's a good trick!

  • @TenchiRyokoMuyo
    @TenchiRyokoMuyo 6 лет назад +1

    The level of control of flight they have so quickly is amazing.

  • @guff_tm
    @guff_tm 3 года назад

    7:40 Love the music choice here
    The AI went full Ultra Instinct lol

  • @armo873
    @armo873 5 лет назад +3

    10 mins and one sec
    This is killing my ocd

  • @jontedeakin1986
    @jontedeakin1986 6 лет назад +10

    TETRIS

  • @Korne127
    @Korne127 6 лет назад

    I just found you and this is exactly what I'm searching for month…
    Thank you!

  • @Tortellia
    @Tortellia Год назад

    Yknow, I came here from his later videos and there’s a serious lack of Code Bullet rage. The amount of sanity in this is unbelievable

  • @MudakTheMultiplier
    @MudakTheMultiplier 6 лет назад +3

    I would love to see an AI learn how to play simple math games that could have definite outcomes. Thing's like playing Dr. Nim's or stuff like that.

    • @MudakTheMultiplier
      @MudakTheMultiplier 6 лет назад +4

      NameName that's kinda the point actually, I would be interested to see what the win rate would be if it always started from a winnable position. It's less about being good at it and more about seeing interesting results.

  • @dylanar8883
    @dylanar8883 4 года назад +3

    7:50 and there comes the NOT HD miggate no bot

  • @rafaelgpontes
    @rafaelgpontes 6 лет назад

    Don't give up just yet, man! Keep up the great work! :)

  • @lewismcgrogan6172
    @lewismcgrogan6172 6 лет назад +1

    1:48 HAHA! Revolutionary... I GET IT!

  • @RuhDiculous
    @RuhDiculous 6 лет назад +3

    Posted this in r/interestingasfuck on Reddit. Definitely interesting as fuck. Can't wait to see more.
    edit: here's the link www.reddit.com/r/interestingasfuck/800lxk

  • @matthewgriffin4068
    @matthewgriffin4068 6 лет назад +8

    I'd like to see pong :D
    Also why are your videos categorised as people and blogs xD

    • @CodeBullet
      @CodeBullet  6 лет назад +1

      dude i have no idea how to change that

    • @AbramSF
      @AbramSF 6 лет назад

      If you use a phone like I do to upload. You can change it in YT studio. When you edit a video it’ll say what category it’s in. When you first start making videos it’ll put them all in people/blogs until you make that change. At least for me it worked that way.

  • @MoreBeesThanNecessary
    @MoreBeesThanNecessary 6 лет назад +1

    "I'll try spinning! that's a good trick!" -anakin's last words before colliding into an asteroid at light speed

  • @WingMan1
    @WingMan1 5 лет назад

    Love the intelligent looking pause at 2:22 !

  • @Spikeon01
    @Spikeon01 6 лет назад +29

    do your bots have some sort of incentive system that you could tweak so that they feel "good" when they get a point?

    • @Spikeon01
      @Spikeon01 6 лет назад +7

      Right, but that's just what makes them reproduce. For example: the dopamine I get when I complete a task correctly makes me much more likely to do that task again.

    • @fravolt2
      @fravolt2 6 лет назад +5

      As in do they get some feedback when they hit an asteroid and thus score a point? I doubt it, since the 'strategy' of a bot shouldn't change (its genome if you will). General strategy and behaviour should only change when new generations are formed most likely.

    • @Naokarma
      @Naokarma 6 лет назад +2

      that can be coded but doing so is so ridiculously hard if you are going for human-like emotion that it would actually take terabytes of info just to feel basic emotions. And that's if your just doing like 2 emotions, neutral and happy, or similar. If going for general searching for points then it's easy

    • @NoNameAtAll2
      @NoNameAtAll2 6 лет назад

      The dopamine dose is just a result of evolution
      This bots get evolved from the best species of each generation

    • @papacitoloko1117
      @papacitoloko1117 6 лет назад

      😐

  • @juliewilde4221
    @juliewilde4221 6 лет назад +29

    AI learn to play agar.io

  • @WhiteWeaseI
    @WhiteWeaseI 6 лет назад +1

    7:38 I lost it when you broke out ultimate battle.

  • @snhk8082
    @snhk8082 6 лет назад

    This is an incredible idea for a channel. My favourite channel at the moment! Keep it up my dude

  • @Kapin05
    @Kapin05 6 лет назад +35

    'he/she'
    Code Bullet dodging the SJW bullet

    • @nemesisnibiru8367
      @nemesisnibiru8367 5 лет назад +4

      No they didnt.. because he forgot the other 700 gender pronouns

  • @divine_devil
    @divine_devil 6 лет назад +22

    How about Pac man?

    • @julioau
      @julioau 6 лет назад +1

      TreeMasterHD Whoa, i wanna see that :)

    • @dandanthedandan7558
      @dandanthedandan7558 6 лет назад +1

      That would be short-lived though since all the A.I. really have to do is adapt with the four ghosts' changing patterns of moving, then it'll fly past each level quick...
      Idk though I'm not a computer scientist so don't trust a word I say with complete dependence.

  • @gamursnek
    @gamursnek Год назад

    Did I finally hit so far down the rabbit hole that I found completely voiceless code bullet videos?

  • @v8areu
    @v8areu 6 лет назад

    Dude you just make me want to focus on learning AI. Thank you for all those videos and we can understand about it. Hope you all your best on your study.