AI learns to play PACMAN || Part 1 the making of Pacman

  • Published on Mar 4, 2018
  • Hey guys this is how I made my clone of pacman
    Check out the source code at
    It would be awesome if you could join me on Patreon
    I hope you enjoy

Comments • 1 204

  • Code Bullet
    Code Bullet  4 years ago +404

    Source code is up so check it out

  • Ilikeoreos47
    Ilikeoreos47 2 years ago +108

    I can't actually believe there was a time when a Code Bullet video wasn't just him shouting obscenities and losing his sanity

  • David Murphy
    David Murphy 4 years ago +315

    Dude, you programmed PacMan from scratch in Java with authentic pathing! How long did that take you??

  • Izandai
    Izandai 4 years ago +228

    I did not expect to learn so much about the mechanics of PACMAN.

  • Xaxaiue du Fraine
    Xaxaiue du Fraine 4 years ago +5

    A couple of years ago, I recreated Pac-man in C++ for my intro to computer science class. I remember researching the ghost behaviors in-depth, and it was immensely satisfying to see that you gave them (nearly) the same behaviors that I did.

  • Risto Pöhö
    Risto Pöhö 4 years ago +40

    Oh damn it's nice to see your channel getting bigger. You deserve it. For all the work you're doing for it. I subscribed on the last video, if you're interested in hearing.

  • Alto
    Alto 4 years ago +178

    Love it! We need more “AI plays ancient game and tests it’s capabilities...”!

  • MCommandguy
    MCommandguy 4 years ago +947

    How do you do this stuff within weeks of each other?!? Don't you need to breathe sometimes?

  • Saif
    Saif 4 years ago +1

    I've been watching your work up to date upload-by-upload recently.

  • Mr Splupper
    Mr Splupper 4 years ago +1

    That was really interesting to watch! I gotta say I love the windows movie maker editing (even though I know you probably find it horrible :P). Are you going to add a points system like the original or do you just want to make pacman survive long enough to eat all the dots opposed to getting a 'high-score'? Or will you disclose this in the next vid? Either way I'm looking forward to seeing how the AIs will perform.

  • PvPants
    PvPants 4 years ago +1

    I've been watching your vids for a while now and I must say they are excellent. I had no idea of how fast AI could learn (i thought it toke a lot longer than a few weeks) and how much it could evolve. Please keep up with the good videos!!!

  • Wilde
    Wilde 2 years ago +2

    I'm actually intending to make a Phaser version of PacMan, in order to learn some game programming techniques.

  • jimmy alderson
    jimmy alderson 3 years ago


  • ProTato
    ProTato 4 years ago +69

    What about the section on the sides of the screen where you cross between the left and right side? Have you tested that?

  • Vordaq
    Vordaq 4 years ago

    Ah cool, I knew the ghosts had such personalities but it's nice seeing their pathing lines drawn out. Can't wait to see an AI tackle this :)

  • Juan Carlos Acuña Canto
    Juan Carlos Acuña Canto 4 years ago +1

    I love it! You actually recreated the actual logic begind pacman instead of just making the ghosts follow you as in many other pacman clones.

  • Soumyadip Pal
    Soumyadip Pal 4 years ago +2

    Man, your videos are an inspiration to learn AI and create something on my own... But would you kindly guide me on where should I start as a beginner? Like which resources/tutorials you followed before creating these kinds of AI. Knowing that would be awesome!

  • MisterVercetti
    MisterVercetti 3 years ago +1

    A few details not covered in this video, for those who are curious:

  • MegaSupernova888
    MegaSupernova888 4 years ago +1

    Yes!!! I've been lurking on this channel for a bit but I have to show my appreciation for my favorite arcade game being combined with the awesomeness of neural network AI. Thank you so much for doing this, this made my day.

  • J. Káiri Plad // Actore
    J. Káiri Plad // Actore  4 years ago +188

    How good can this channel be? ^_^