1. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.

Warstory: Technical Machine vs. Hunter

Discussion in 'Stark Mountain' started by david stone, Jul 4, 2011.

  1. david stone

    david stone Fast-moving, smart, sexy and alarming.
    is a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Programmer Alumnusis a Super Moderator Alumnusis a Researcher Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Aug 3, 2005
    Messages:
    5,150
    Technical Machine is my Pokemon Artificial Intelligence (AI). It recently battled against Hunter on Pokemon Lab in a generation 4 battle. This battle was done with Technical Machine set to search to a depth of 2.

    http://www.smogon.com/forums/showthread.php?t=69021

    AI team:

    Technical Machine:

    [​IMG]
    Hippowdon (100% HP) @ Leftovers ** D64Sdvs
    Ability: Sand Stream
    - Earthquake
    - Slack Off
    - Stealth Rock
    - Roar

    [​IMG]
    Celebi (100% HP) @ Leftovers ** OLfxghg3
    Ability: Natural Cure
    - Calm Mind
    - Recover
    - Grass Knot
    - Psychic

    [​IMG]
    Blissey (100% HP) @ Leftovers ** ofJKdnD
    Ability: Natural Cure
    - Wish
    - Softboiled
    - Toxic
    - Flamethrower

    [​IMG]
    Skarmory (100% HP) @ Shed Shell ** 124652Dss
    Ability: Keen Eye
    - Spikes
    - Roost
    - Drill Peck
    - Whirlwind

    [​IMG]
    Tentacruel (100% HP) @ Leftovers ** Dkeos40
    Ability: Liquid Ooze
    - Toxic Spikes
    - Rapid Spin
    - Surf
    - Sludge Bomb

    [​IMG]
    Rotom-W (100% HP) @ Leftovers ** DkxndS13
    Ability: Levitate
    - Thunderbolt
    - Shadow Ball
    - Reflect
    - Hydro Pump

    I recently had a battle with Technical Machine vs. Hunter, who is new to simulator battles. This is my analysis of the battle.

    Technical Machine starts out with a team match up. Hippowdon can Earthquake Infernape for a pretty much guaranteed KO if it stays in, and the team is defensive enough that the foe having SR up is worth them losing Infernape.

    Predicting...
    Foe team:
    Hunter:
    Infernape (100% HP) @ ** Infernape
    - Close Combat
    - Grass Knot
    - Fire Blast
    - U-turn
    Scizor (100% HP) @ Choice Band **
    Ability: Technician
    - Bullet Punch
    - Superpower
    - U-turn
    - Pursuit
    Starmie (100% HP) @ Life Orb **
    Ability: Natural Cure
    - Thunderbolt
    - Ice Beam
    - Surf
    - Rapid Spin
    Flygon (100% HP) @ Choice Scarf **
    Ability: Levitate
    - Earthquake
    - U-turn
    - Outrage
    - Stone Edge
    Gengar (100% HP) @ Life Orb **
    Ability: Levitate
    - Shadow Ball
    - Focus Blast
    - Thunderbolt
    - Substitute
    Gyarados (100% HP) @ Leftovers **
    Ability: Intimidate
    - Waterfall
    - Dragon Dance
    - Stone Edge
    - Earthquake

    Here we see a limit to Technical Machine's prediction abilities, however. Lead Infernape will generally have Stealth Rock and Fake Out, in my experience, but Technical Machine's stats aren't that detailed, so it just predicts the average Infernape.

    Technical Machine makes the same play I would, opting to KO Infernape here rather than simply ape the opponent and use Stealth Rock as well.

    But then Technical Machine takes a risk to get Stealth Rock down, staying in on Gyarados. However, it doesn't pay off, as the foe Gyarados uses Waterfall twice in a row, both times flinching TM's Hippowdon and taking off 49% of its HP.

    The second time, Hippowdon was attempting to use Slack Off, which seems to be an obvious bad move, but apparently not one so bad that TM sees why. Gyarados shows that it has a Life Orb, but unfortunately, I do not have support for Life Orb in my log analysis function, (a shortfall that will come back to bite TM later far worse than this). This means that even though Technical Machine's Hippowdon just took nearly 50% damage from Waterfall, meaning Slack Off only wins with Leftovers recovery and risks a KO from a CH, TM still thinks Waterfall will do about 38%, making Slack Off seem like a clear winner.

    Also important is that the foe now has Stealth Rock down, and TM does not. This means that double switches make TM lose. This is why Technical Machine decides to switch to Skarmory instead of Celebi to stop Gyarados. Celebi risks the foe switching to Scizor and using Choice Band Superpower, U-turn, or Pursuit. Skarmory only risks the foe switching to Heatran, which I can handle much better.

    Fortunately, Skarmory has a Shed Shell. Here is the updated team prediction with Magnezone in it:

    AI team:
    Technical Machine:
    Hippowdon (14.285714285714286% HP) @ Leftovers ** D64Sdvs
    Ability: Sand Stream
    - Earthquake
    - Slack Off
    - Stealth Rock
    - Roar
    Celebi (100% HP) @ Leftovers ** OLfxghg3
    Ability: Natural Cure
    - Calm Mind
    - Recover
    - Grass Knot
    - Psychic
    Blissey (100% HP) @ Leftovers ** ofJKdnD
    Ability: Natural Cure
    - Wish
    - Softboiled
    - Toxic
    - Flamethrower
    Skarmory (100% HP) @ Shed Shell ** 124652Dss
    Ability: Keen Eye
    - Spikes
    - Roost
    - Drill Peck
    - Whirlwind
    Tentacruel (100% HP) @ Leftovers ** Dkeos40
    Ability: Liquid Ooze
    - Toxic Spikes
    - Rapid Spin
    - Surf
    - Sludge Bomb
    Rotom-W (100% HP) @ Leftovers ** DkxndS13
    Ability: Levitate
    - Thunderbolt
    - Shadow Ball
    - Reflect
    - Hydro Pump

    ======================
    Predicting...
    Foe team:
    Hunter:
    Gyarados (81.25% HP) @ ** Gyarados
    Ability: Intimidate
    - Waterfall
    - Dragon Dance
    - Stone Edge
    - Earthquake
    Magnezone (100% HP) @ ** Magnezone
    - Thunderbolt
    - Explosion
    - Substitute
    - Hidden Power
    Tyranitar (100% HP) @ Choice Scarf **
    Ability: Sand Stream
    - Crunch
    - Stone Edge
    - Earthquake
    - Pursuit
    Gengar (100% HP) @ Life Orb **
    Ability: Levitate
    - Shadow Ball
    - Focus Blast
    - Thunderbolt
    - Substitute
    Scizor (100% HP) @ Choice Band **
    Ability: Technician
    - Bullet Punch
    - Superpower
    - U-turn
    - Pursuit

    Heatran and Flygon are dropped for Magnezone and Tyranitar. See how it miscalculates the foe Gyarados's HP, thinking it's only lost HP to Sandstorm damage.

    Then Rotom-W uses Hydro Pump several times while Magnezone uses Hidden Power (neutral). Rotom-W misses once, and then hits every time after that, until both Pokemon are down to 17% HP. If Rotom-W hits and Magnezone stays in, Rotom-W beats it, otherwise, Magnezone beats it. Now, Rotom-W can use Thunderbolt for a guaranteed KO on Magnezone, but it's afraid of the foe switching to Tyranitar, and since I don't have accuracy added in yet, TM thinks that against Magnezone, both are just as good, but against Tyranitar, Hydro Pump is better.

    Sure enough...

    And then I don't quite know why TM does what it does. It decides to replace the fainted Rotom-W with Hippowdon, who is at 14%. Then it immediately replaces Hippowdon with Celebi. The foe apparently expects something like this, and uses Explosion, taking Celebi down 54%, and sends out Scizor. This revealed some sort of Explosion-related bug where Celebi apparently took no damage according to TM.

    Predicting...
    Foe team:
    Hunter:
    Gyarados (81.25% HP) @ ** Gyarados
    Ability: Intimidate
    - Waterfall
    - Dragon Dance
    - Stone Edge
    - Earthquake
    Scizor (100% HP) @ ** Scizor
    - Bullet Punch
    - Superpower
    - U-turn
    - Pursuit
    Heatran (100% HP) @ Choice Scarf **
    Ability: Flash Fire
    - Earth Power
    - Fire Blast
    - Explosion
    - Dragon Pulse
    Flygon (100% HP) @ Choice Scarf **
    Ability: Levitate
    - Earthquake
    - U-turn
    - Outrage
    - Stone Edge


    But Celebi fainting ensured that Celebi's HP being wrong didn't matter any more. TM then uses Rapid Spin, permanently clearing Stealth Rock as Hunter stays in and uses Pursuit. From the damage (18%), it seems obvious it's not Choice Band, but I don't have that part of my program integrated with the log analyzer yet, so TM gets no extra information.

    TM correctly decides to not waste its time using Toxic Spikes because it predicts the foe has Flygon as the last Pokemon, which would mean that they would do nothing.

    Now TM is worried about the foe switching to Gyarados, so instead of using Surf, which is the best move for anything except the foe switching to Gyarados, Technical Machine's Tentacruel uses Sludge Bomb. Scizor stays in and gets free damage from Pursuit. Next turn, the same thing happens. But now Tentacruel's slow death to Pursuit is revealed to TM's shallow search of 2 turns, and Technical Machine takes action. It uses Surf, removing nearly half of Scizor's HP. Next turn, Surf again. However, Scizor has a Choice Scarf and thus moves first the turn after, fainting Tentacruel before it can finish Scizor off with Surf.

    Now Hunter has two Pokemon weak to Spikes: Scizor and Heatran. However, Scizor is just above the HP needed for Spikes to KO it (it's at 15% instead of 12.5%). This means that a single layer of Spikes will not kill Scizor, but a Drill Peck will. Regardless, TM decides to just go with it and use Spikes as Hunter reveals Gengar. I guess TM was hoping it could just put down two layers for a guaranteed kill of Scizor, rather than worrying about it switching out as Skarmory uses Drill Peck. Either that or the predicted Heatran was assumed to take enough damage from Spikes to justify it.

    Technical Machine makes the obvious switch to the Gengar counter on the team, Blissey, as Gengar uses Hidden Power (neutral, so probably Fire).

    To recap, Technical Machine has a ~10% HP Hippowdon, a nearly 100% Blissey, and a 100% Skarmory, and has put down one layer of Spikes on the foe's field.

    The foe has a low HP Gyarados, a 15% HP Scizor, and an 87% HP Gengar. It also has one Pokemon in reserve that TM predicts to be Heatran. The battle is looking pretty good for Technical Machine here, but it could still go either way at this point.

    Technical Machine continues its strategy of hedging its bets against a strong foe by playing cautiously. Rather than making the obvious Flamethrower, TM has Blissey avoid giving Heatran Flash Fire or Gyarados a mostly free switch (from the perspective of TM, who thinks Gyarados is at 87% HP), TM takes the careful move:

    Blissey has Special Defense, Softboiled, and Wish, while Gengar doesn't even have Leftovers, so combined with Focus Blast's low accuracy and PP, Blissey can win this just by sitting there, so there is no risk. However, the foe Hunter does not have the patience of a machine, and thus makes a rash move:

    Blissey scores a big win here, as Toxic combined with Sandstorm should help keep Dragonite from sweeping.

    Technical Machine wisely takes Blissey out of Dragonite's line of sight. Skarmory attempts to Roost back up to good health when tragedy strikes:

    Blissey decides to Toxic stall rather than attack with Flamethrower, despite being at nearly full health. I can't say I disagree with it:

    Dragonite is now at 26% HP according to TM, but again, Dragonite has Life Orb, and TM doesn't understand that. Perhaps if TM did, it would have seen Dragonite has less HP and used Flamethrower. However, a -1 Attack Superpower isn't going to do that much to Blissey, as long as it spams recovery, so Softboiled or Wish is the definite best move here.

    And then Technical Machine tries a surprise tactic.

    TM is able to bring Hippowdon to around 70%, and Blissey to around 40%. Dragonite is hanging on by a thread. The fear here is that if Blissey were to beat Dragonite outright, Scizor could use Superpower on Blissey and then kill the weak Hippowdon. This clever play by TM blocks that. The smart move is to avoid Flamethrower burn / CH and Draco Meteor by just going back to Blissey, and then using Softboiled. TM, however, has a different idea.

    TM tried to use Stealth Rock.

    Technical Machine is fooled by the double faint, and possibly by the Life Orb, and somehow thinks that Hunter brought out Gengar instead of Scizor. When Scizor uses Roost, Technical Machine crashes because Gengar does not have Roost, nor is it named Scizor.

    So congratulations to Hunter for making the game close all the way until TM crashed at the end. I later learned that the foe Scizor did not have Superpower, so TM would have had pretty good chances at winning.
  2. Khreep

    Khreep

    Joined:
    Jun 14, 2011
    Messages:
    5
    Obi this is roshi. Awesome awesome work so far with this. This TM makes some downright scary plays when it's on point. Like creator like machine, huh.
  3. zero2exe

    zero2exe Veteran Breeder - Expert Translator
    is a Contributor Alumnus

    Joined:
    Jan 7, 2010
    Messages:
    590
    This is soooo awesome, congratz on making so much progress for this. Hope you can fix the bugs on TM so it goes through the whole battle next time =P
  4. Amarillo

    Amarillo
    is a Tiering Contributor Alumnusis a Contributor Alumnus

    Joined:
    Nov 26, 2010
    Messages:
    746
    This is really awesome! It's always nice to see a year-long project get this far.
    Are you planning to make a BW variation of the Technical Machine?
  5. david stone

    david stone Fast-moving, smart, sexy and alarming.
    is a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Programmer Alumnusis a Super Moderator Alumnusis a Researcher Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Aug 3, 2005
    Messages:
    5,150
    Amarillo: Yes, I am. I'm fixing up any remaining bugs and implementing all major generation 4 moves / abilities that I still need to do. After that, I'm going to learn generation 5 and then implement that.
  6. Luxpluff91

    Luxpluff91

    Joined:
    Jan 30, 2011
    Messages:
    1,345
    Wow this is very cool. Congrats on your work so far :)

Users Viewing Thread (Users: 0, Guests: 0)