Giovanni is the boss of Team Rocket and the Viridian City Gym Leader, the eighth and last Gym Leader in Pokemon Red, Blue and Yellow. You fight him three times: in Rocket Hideout B4F, in Silph Co. 11F and in Viridian Gym. At the gym his Red and Blue team is Rhyhorn (Lv 45), Dugtrio (Lv 42), Nidoqueen (Lv 44), Nidoking (Lv 45) and Rhydon (Lv 50); in Yellow it is Dugtrio (Lv 50), Persian (Lv 53), Nidoqueen (Lv 53), Nidoking (Lv 55) and Rhydon (Lv 55). Beating him at the gym earns the Earth Badge, TM27 (Fissure) and 4,950 in prize money (5,445 in Yellow).
Giovanni's AI, in short: he uses a Guard Spec. on 25% of turns (at most 1 per Pokemon) in all three games. He picks moves by Rules 1 and 3 in all three games. Everything on this page is read from the game's code, and GardenFlouer's battler runs the same routines, tested in the game's own code in an emulator.
Where
Rocket Hideout B4F, Silph Co. 11F and Viridian Gym
Team
5 Pokemon, Lv 42 to 50 in Red and Blue; 5 Pokemon, Lv 50 to 55 in Yellow
Reward
Earth Badge, TM27 Fissure, prize 4,950 in Red and Blue, 5,445 in Yellow
Badge effect
Every traded Pokemon obeys you
Items
Uses a Guard Spec. on 25% of turns (at most 1 per Pokemon) in all three games
Move choice
Rules 1 and 3 in all three games (explained below)
Moves in red are set by the game's own code on top of the normal moveset (a gym leader's move in their own gym, the Elite Four's team move, the Champion's moves, or Yellow's special trainer moves). Stats use the trainer DVs every Gen 1 trainer gets (9, 8, 8, 8) and no stat experience.
On 25% of his turns (64 in 256), he uses a Guard Spec. instead of attacking. In Gen 1 it works like Mist: while that Pokemon stays in, your moves that only lower its stats (Growl, Leer, Tail Whip, Sand-Attack, Screech and the like) miss it.
At most 1 item per Pokemon. The count starts over every time one of his Pokemon comes out.
The game rolls when his Pokemon's turn comes in the Speed order, after both of you picked a move. When he uses an item, his Pokemon does not attack that turn. Once that Pokemon's items are used up, the game does not roll for it at all.
Red and Blue make this roll even while his Pokemon is locked into a move, as with Dig, Rage and Thrash (Yellow skips it then).
How he picks a move
Every move starts at 10 points. The rules below add or take away points, and only the moves with the lowest score can be picked. Then the game rolls for a move slot until it lands on one of them: slot 1 takes 63 rolls of 256, slot 2 takes 64, slot 3 takes 63 and slot 4 takes 66, so among tied moves the fourth is a little more likely (25.8%, against 24.6%, 25% and 24.6% when all four tie).
Rule 1, no double status. If your Pokemon already has a status condition, each move that only puts you to sleep, poisons or paralyzes gets +5, so he will not pick it while another move scores lower. None of his Pokemon know such a move, so this rule never changes anything for him.
Rule 3, type matchups. A move whose type is super effective against your Pokemon gets -1, even one that does no damage. A move whose type is not very effective or has no effect gets +1, but only if the same Pokemon also has a damaging move of another type (or Super Fang, a fixed damage move such as Seismic Toss, or Fly). The check reads only the first line of the type chart that matches either of your types, so against a two-type Pokemon it can see one type and miss the other.
Against Bulbasaur (Grass and Poison), Nidorino's Poison Sting is read as super effective, so it gets -1, but it really does 1x damage: the check stopped at the first line of the type chart that matched one of the two types.
The computer's stat-lowering moves can fail on their own. When the computer uses a move that lowers your stats, the game first rolls 0 to 255 and the effect fails on anything under 64: a 1 in 4 chance, before accuracy is even checked. Your own moves never get this roll, and link battles do not have it. On his team: Screech, Tail Whip, Growl and Sand-Attack.
Yellow
Items
On 25% of his turns (64 in 256), he uses a Guard Spec. instead of attacking. In Gen 1 it works like Mist: while that Pokemon stays in, your moves that only lower its stats (Growl, Leer, Tail Whip, Sand-Attack, Screech and the like) miss it.
At most 1 item per Pokemon. The count starts over every time one of his Pokemon comes out.
The game rolls when his Pokemon's turn comes in the Speed order, after both of you picked a move. When he uses an item, his Pokemon does not attack that turn. Once that Pokemon's items are used up, the game does not roll for it at all.
Yellow skips this roll while his Pokemon is locked into a move, as with Dig and Rage. Red and Blue roll even then.
How he picks a move
Every move starts at 10 points. The rules below add or take away points, and only the moves with the lowest score can be picked. Then the game rolls for a move slot until it lands on one of them: slot 1 takes 63 rolls of 256, slot 2 takes 64, slot 3 takes 63 and slot 4 takes 66, so among tied moves the fourth is a little more likely (25.8%, against 24.6%, 25% and 24.6% when all four tie).
Rule 1, no double status. If your Pokemon already has a status condition, each move that only puts you to sleep, poisons or paralyzes gets +5, so he will not pick it while another move scores lower. None of his Pokemon know such a move, so this rule never changes anything for him.
Rule 3, type matchups. A move whose type is super effective against your Pokemon gets -1, even one that does no damage. A move whose type is not very effective or has no effect gets +1, but only if the same Pokemon also has a damaging move of another type (or Super Fang, a fixed damage move such as Seismic Toss, or Fly). The check reads only the first line of the type chart that matches either of your types, so against a two-type Pokemon it can see one type and miss the other.
Against Sandshrew (Ground type), Nidoqueen's Thunder gets +1 and is held back: its Electric type has no effect on Ground, and his Pokemon has a better move to use.
Against Pidgey (Normal and Flying), Nidorino's Double Kick is read as super effective, so it gets -1, but it really does 1x damage: the check stopped at the first line of the type chart that matched one of the two types.
The computer's stat-lowering moves can fail on their own. When the computer uses a move that lowers your stats, the game first rolls 0 to 255 and the effect fails on anything under 64: a 1 in 4 chance, before accuracy is even checked. Your own moves never get this roll, and link battles do not have it. On his team: Screech, Growl, Tail Whip, Sand-Attack and Leer.
Your Pokemon vs Giovanni: What Will the AI Pick?
Pick your Pokemon and see, for each of his Pokemon, what its moves do to yours, how the AI scores each one, and the exact chance it picks each move this turn. Rows in color are the moves that can be picked. It runs the game's own rules, checked against the battler's engine.
Your Pikachu (Electric) against Giovanni's team (Rocket Hideout B4F) in Red and Blue: no status on your Pokemon, its Pokemon's first turn.
OnixLv 25Rock / Ground
Your types against it: Electric 0x (no effect).
Its move
On you
AI score
Chance
Screech Normal
Status
10
24.6%
Bind Normal
1x
10
25%
Rock Throw Rock
1x
10
24.6%
Rage Normal
1x
10
25.8%
RhyhornLv 24Ground / Rock
Your types against it: Electric 0x (no effect).
Its move
On you
AI score
Chance
Horn Attack Normal
1x
10
100%
One move only, so it always uses it.
KangaskhanLv 29Normal
Your types against it: Electric 1x.
Its move
On you
AI score
Chance
Comet Punch Normal
1x
10
33.2%
Rage Normal
1x
10
33.7%
Bite Normal
1x
10
33.2%
Your Pikachu (Electric) against Giovanni's team (Rocket Hideout B4F) in Yellow: no status on your Pokemon, its Pokemon's first turn.
OnixLv 25Rock / Ground
Your types against it: Electric 0x (no effect).
Its move
On you
AI score
Chance
Screech Normal
Status
10
24.6%
Bind Normal
1x
10
25%
Rock Throw Rock
1x
10
24.6%
Rage Normal
1x
10
25.8%
RhyhornLv 24Ground / Rock
Your types against it: Electric 0x (no effect).
Its move
On you
AI score
Chance
Horn Attack Normal
1x
10
100%
One move only, so it always uses it.
PersianLv 29Normal
Your types against it: Electric 1x.
Its move
On you
AI score
Chance
Growl Normal
Status
10
24.6%
Bite Normal
1x
10
25%
Screech Normal
Status
10
24.6%
Pay Day Normal
1x
10
25.8%
Fight Giovanni in the Battler
Each Fight this team button above opens GardenFlouer's Gen 1 battler with that exact team: the real levels and moves, and the class AI with its items and switching, run by the same rules as the cartridge. Pick your team or tap Random 6, then Battle. Your team fights at level 100 unless you tick Use a matching level there.
The Earth Badge, TM27 (Fissure) and 4,950 in prize money in Red and Blue (5,445 in Yellow). The badge: every traded Pokemon obeys you.
Does Giovanni use items?
He uses a Guard Spec. on 25% of turns (at most 1 per Pokemon).
How does Giovanni's AI pick moves?
Every move starts at 10 points, the class's rules add or take away points, and only the lowest scores can be picked; then a slot roll breaks the tie, a little in favour of slot 4 (66 in 256). Giovanni uses Rules 1 and 3 in Red and Blue and Rules 1 and 3 in Yellow. The odds calculator on this page shows the exact chance of each move against your Pokemon.
Can I battle Giovanni online?
Yes, in GardenFlouer's Gen 1 battler, free in your browser. The Fight buttons on this page load each of his exact team, with the class's AI, items and switching, run by the same rules as the cartridge.
Where This Comes From
Every team, level, move and prize here is read from the pret disassemblies of Pokemon Red, Blue and Yellow, the community projects that turned the cartridges back into readable code, through the same trainer data as the trainer database. The AI is the game's own trainer AI routine for his class. The odds calculator runs the game's move choice rules, and a test replays every one of its answers in the battler's engine, which matched the real game in an emulator in all 352 Red and 343 Yellow trainer fights it was run on.