Two AI Gladiators vs Zombies — Transcript
Full transcript
- 0:00In the previous episode, we met Gary,
- 0:02our AI gladiator. He was able to fight
- 0:05up to 16 zombies at the same time thanks
- 0:08to a fearsome technique, a perfect parry
- 0:10followed by a backstab.
- 0:13But despite his prowess, Gary ended up
- 0:15overwhelmed by the horde.
- 0:21So today, he won't be fighting alone in
- 0:24the arena anymore. It's time to get a
- 0:26little help. And that help is Larry.
- 0:35Thanks to everyone for all the name
- 0:37ideas in the comments. It was very
- 0:40inspiring. Now the only question is
- 0:43whether they can work together to take
- 0:45on the Horde.
- 0:47What brilliant strategies could possibly
- 0:49emerge from these two incredible
- 0:52fighters?
- 0:56For deeper immersion, I completely
- 0:58reworked the arena's ground system. The
- 1:01sand is made up of hundred of thousands
- 1:03of particles that can be moved and
- 1:05tinted. I also fully overhauled the
- 1:07physics of the various projections.
- 1:13A diffusion mechanism lets all the
- 1:15traces dissipate naturally.
- 1:18What I really like is that the arena
- 1:20floor tells a story all on its own.
- 1:23Now, let's see how our two heroes do in
- 1:26this all new environment. There's
- 1:28nothing like a good zombie fight to
- 1:29break the ice.
- 1:33After 2 minutes, progress is looking
- 1:35pretty good. Let's see how the boys are
- 1:38doing.
- 1:46Unfortunately, Gary has never had a
- 1:48friend and he's not quite sure how to
- 1:50handle it. Even worse, his brain isn't
- 1:53wired for friendship. Gi will need to
- 1:56learn trust and love if he's going to
- 1:57succeed.
- 1:59I had to rewrite the entire simulation
- 2:02to introduce the concept of allies and
- 2:04make the whole system more generic.
- 2:07Until then, I was using ray casting for
- 2:09perception. The advantage is that the
- 2:12number of observations is fixed. But
- 2:14there are several drawbacks. The number
- 2:16of inputs is very high with either many
- 2:19missing values or a huge amount of
- 2:21redundancy. On top of that, detection is
- 2:24also quite imprecise.
- 2:27The new system is based on the proximity
- 2:29of surrounding entities. The 10 nearest
- 2:32ones are encoded and fed into the neural
- 2:34network. Perhaps a mix of the two
- 2:37systems could be used. This is something
- 2:39I'm still exploring. Of course, the
- 2:42rewards also need to be adjusted to
- 2:44explicitly penalize attacks between
- 2:46allies. Let's run the training again,
- 2:48hoping that we can observe the early
- 2:50signs of collaboration. AI is playing a
- 2:52growing role in my projects, especially
- 2:54when it comes to reviewing my code or
- 2:57researching deep technical topics like
- 2:59how to adapt PO to a multi- aents
- 3:02problem. The challenge is that different
- 3:04AI models excel at different tasks and
- 3:06subscription are not cheap. That's why I
- 3:09use Mammoth AAI which brings a wide
- 3:11range of models together under one
- 3:13subscription. It gives me much more
- 3:15flexibility in how I use my credits. For
- 3:18my projects, I mainly use Deep Search to
- 3:20quickly get up to speed on a topic or
- 3:22explore it in more depth. Perplexity is
- 3:25great for this, delivering detailed,
- 3:27wellsourced reports in just a few
- 3:29minutes.
- 3:31Opus 5.5 excels at coding questions and
- 3:34explaining research papers, while GPT6
- 3:36is my go-to for lighter, quicker
- 3:38research. Mammoth gives me access to all
- 3:41of these services for $10 a month. You
- 3:44can also create custom Mammoth for
- 3:46recurring tasks. For example, I've set
- 3:48up a code reviewer, a researcher, and an
- 3:50English translator.
- 3:52If you want to cut your subscription
- 3:54costs while accessing all the Frontier
- 3:56models, try Mammoth starting at $10 a
- 3:59month when build annually. Thanks again
- 4:01to Mammoth AAI for their support.
- 4:04Let's get back to training and see
- 4:06whether the new reward improves the
- 4:08situation. This interface lets me
- 4:10monitor training progress, especially
- 4:12through the event logger, which provides
- 4:14a glimpse into the agents capabilities.
- 4:17After 100 iterations, let's quickly
- 4:20check whether our two companions are at
- 4:22each other's throats before we continue
- 4:24training.
- 4:31It's obviously still far from perfect,
- 4:34but things between them already seem
- 4:36much calmer. We can also see that
- 4:38they're managing to pull off a few
- 4:40perfect parries. Let's hope it stays
- 4:42that way and get back to training.
- 4:56The perfect parries seem to be pretty
- 4:58well mastered and we are starting to see
- 5:00a few backstabs from time to time. Let's
- 5:02take a closer look.
- 5:22It's definitely much better already.
- 5:25Gary and Larry are far less reckless and
- 5:27managed to block many more hits.
- 5:29However, they are quite uncomfortable
- 5:31when they get close. It feels like they
- 5:33are getting in each other's way.
- 5:35Clearly, basic safety practices are not
- 5:38being followed at all and inevitably an
- 5:42accident eventually happens.
- 5:48Despite a few minor mistakes and thanks
- 5:50to Larry's courageous sacrifice, they
- 5:53make it through the wave. That's a good
- 5:55start, but there's still a long way to
- 5:58go.
- 6:22After 1,200 iterations, progress is
- 6:25significant. Parries are becoming more
- 6:27frequent, and our gladiators clear the
- 6:29wave without any trouble. However, I
- 6:32think there's a problem with the
- 6:33rewards. Nothing really compensate for
- 6:35the prospect of hurting an ally. Staying
- 6:38close doesn't do much for the agents
- 6:40other than giving them a chance to try
- 6:42to steal each other's points.
- 6:45To counterbalance this, I decided to add
- 6:48an assist mechanic. Two situations
- 6:50qualify as an assist. Attacking a zombie
- 6:52that has been stunned by an ally or
- 6:54attacking an enemy that is targeting an
- 6:57ally. In addition, any elimination
- 6:59achieved during an assist grants the
- 7:01same rewards to both agents to force
- 7:04Gary and Larry to target the same enemy.
- 7:06I'll start by having them face a single
- 7:08zombie. That will prevent them from
- 7:10splitting up at the start of the fight
- 7:12if the zombies are not grouped together.
- 7:15Let's take a quick look at where things
- 7:17stand after 200 iterations.
- 7:32The agents have turned into a pair of
- 7:34zombie bashing bullies. It's an original
- 7:37strategy, though unfortunately it also
- 7:40involves beating up their allies, and it
- 7:42isn't very effective at racking up
- 7:44eliminations. When it come to proximity,
- 7:47however, it's a resounding success.
- 7:50Let's see whether we can develop a
- 7:52slightly more refined approach going
- 7:53forward.
- 7:57Soon after, eliminations start chaining
- 7:59together and the score literally
- 8:01skyrockets.
- 8:26The progress really is impressive. The
- 8:29agents are far more effective at
- 8:30eliminating threats, and we can see that
- 8:33they show a great deal of restraint
- 8:35toward one another.
- 8:53progress will continue more slowly until
- 8:56it reaches a plateau after 600
- 8:58iterations. Let's see how that goes.
- 9:14The method is now finally honed and the
- 9:17zombies barely get a chance to do
- 9:19anything. There is the occasional bit of
- 9:22friendly fire between Gary and Larry,
- 9:24but that's surely just good camaraderie.
- 9:26It's almost become too easy. Let's bump
- 9:28up the number of zombies they're facing.
- 9:34Let's see how they fare against four
- 9:36zombies. They do attempt to cover each
- 9:39other, but the two fighters are quickly
- 9:41overwhelmed and eliminated within
- 9:43seconds.
- 9:45It's a rather tough start for them, but
- 9:47it's also a situation they've never
- 9:49faced before. Let's give them a little
- 9:52time to get used to this new setup.
- 9:57Fairly quickly, the agents adapt and the
- 9:59score shoots back up. However, what's
- 10:02happening here is a textbook example of
- 10:05the deviousness of optimization
- 10:07algorithms. They're a bit like evil
- 10:09genies. We ask them for something and
- 10:12they grant it in the absolute worst way
- 10:15possible. Here's what Gary does when
- 10:17asked not to hurt his teammate during
- 10:20fights.
- 10:27uh
- 10:30no damage to
- 10:32and this is not a one-off. It's
- 10:35systematic.
- 10:38On top of that, he's actually pretty
- 10:40good. He's quite capable of controlling
- 10:42the group of zombies and then stabbing
- 10:43them one by one. Once we bumped it up to
- 10:46four zombies, paying the price of
- 10:48betrayal became more profitable. he
- 10:50could rack up points four times as fast
- 10:53rather than share them and risk getting
- 10:55constantly punished whenever an accident
- 10:57happened. At that point, I was a bit
- 11:00stuck because I couldn't find a way to
- 11:02get the agents to cooperate. My attempts
- 11:05had even had the exact opposite effect.
- 11:08The missing piece came from an OpenAI
- 11:10paper about their famous Dota playing
- 11:12AI. Of course, the agents had to work
- 11:15together. And one of the things Open AI
- 11:17tried was giving them a shared reward.
- 11:20That should solve my problem. If Gary
- 11:22takes out an ally, he misses out on a
- 11:24big reward bonus. With this new system,
- 11:28after 200 iterations, there were no
- 11:30dubious strategies. They seem to be
- 11:33playing by the rules.
- 11:35However, there is no real attacks or
- 11:37signs of cooperation, but it's still
- 11:40very early.
- 11:50Very quickly the attacks begins to
- 11:52reappear. But the most interesting part
- 11:55is yet to come.
- 12:04Something very cool is happening here.
- 12:07Gary pushes an enemy towards Larry who
- 12:09can then eliminate it instantly. In
- 12:12fact, this is the first glimmer of
- 12:15teamwork. Finally.
- 12:30This pattern clearly didn't escape them.
- 12:33And even though it's still quite
- 12:34hesitant, the intention is now
- 12:37unmistakable.
- 12:56After 1,500 iterations, their mastery is
- 13:00much better, and they clear the wave
- 13:02with ease. However, the agents are
- 13:05clearly not very economical with their
- 13:07attacks. They just strike widely and
- 13:09continuously. To force them, to be more
- 13:12precise, I added an energy pool that
- 13:14every action draws from. This new
- 13:17addition clearly didn't sit well with
- 13:19our two heroes who quickly ran out of
- 13:22energy and were swept aside.
- 13:33Adaptation is very quick, however, and
- 13:35they are becoming much more economical
- 13:37with their attacks.
- 13:56a thousand iterations later, they have
- 13:58become killing machines.
- 14:02To make things more challenging, I'll
- 14:04double the energy cost of attacks and
- 14:06half the regeneration rate. Successfully
- 14:09performing a perfect parry restores 20%
- 14:12of the energy.
- 14:18Clearly, we're going to have to learn to
- 14:20parry a bit more.
- 14:27This time, adaptation takes longer.
- 14:29After 600 iterations, they are mainly
- 14:32learning to buy their time and operate
- 14:34more efficiently.
- 14:47Gary, however, pulls off a super perfect
- 14:49parry at the end, which is an excellent
- 14:52signal.
- 15:01A little later, they clearly grasp the
- 15:04value of the perfect parry and use it
- 15:06whenever they run low on energy. The
- 15:08execution is still a bit hesitant, but
- 15:10it's an excellent direction.
- 15:3230 minutes later, the strategy is nearly
- 15:35flawless. The two cooperate seamlessly
- 15:38and dispatch eight zombies with ease.
- 15:41From here on, I'll disable all secondary
- 15:44rewards and keep only eliminations, so
- 15:47they stay focused on what matters most.
- 15:49I'll also gradually add more zombies to
- 15:51see just how far Gary and Larry can go.
- 16:45Ha!
- 17:21That
- 17:44hooked.
- 17:53Hat.
- 18:12Help.
- 18:27Ha!
- 19:08Power.
- 19:34Fire.
- 20:03Hat.
- 20:52Getting the two agents to collaborate
- 20:54was no small feat. Still, I'm very
- 20:56pleased with the result, and I would
- 20:59like to try it with far more than just
- 21:00two fighters. Also, for the next stage
- 21:03of the project, I'm looking for someone
- 21:05to create sprites. Anyone with skills in
- 21:08sprite animation, pixel art, or
- 21:10otherwise is welcome to contact me on
- 21:12Discord or by email. All the details are
- 21:15in the description. A huge thanks to all
- 21:18the Patreon members for their support
- 21:20and to Mammoth AI.
About this transcript
This page contains the full transcript of Two AI Gladiators vs Zombies by Pezzza's Work, generated from the public captions YouTube serves with the video. The transcript has 1,836 words across 308 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.