No description
  • Zig 63.4%
  • TypeScript 34.3%
  • JavaScript 1.2%
  • C 0.6%
  • CSS 0.2%
  • Other 0.2%
Find a file
aria bf265bb995 Promote Guts from species check to ability, add Soundproof/Guts/Truant to protocol tables
Replace hasGuts(species) with proper Ability.Guts checks in modifiedAttack,
statusModify, calcDamage, confusionSelfHit, and boost/unboost stat recomputation.
Add Soundproof and Guts ability enums to protocol and Gen3 data. Fix confusion
self-hit and physical damage calc to apply Guts attack modifier in showdown mode.
2026-04-17 21:44:13 -04:00
adv stuff 2026-04-08 23:38:00 -04:00
engine Promote Guts from species check to ability, add Soundproof/Guts/Truant to protocol tables 2026-04-17 21:44:13 -04:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 stuff 2026-04-08 23:38:00 -04:00
pokemon-showdown@686819e5e1 Auto commit: 2026-02-16 17:54 2026-02-16 17:54:13 -05:00
.DS_Store stuff 2026-04-08 23:38:00 -04:00
ADV_GEN3_MIGRATION_PLAN.md Checkpoint gen3 parity progress 2026-04-16 07:17:46 -04:00
AGENTS.md Checkpoint gen3 parity transformed rollout request rng 2026-04-16 19:39:15 -04:00
LICENSE Update migration status, roadmap, and environment specs 2026-02-17 23:20:17 -05:00
README.md Update migration status, roadmap, and environment specs 2026-02-17 23:20:17 -05:00
ROADMAP_GEN3_ADV.md stuff 2026-04-08 23:38:00 -04:00
TODO.md Fix Gen 3 Pursuit switch handling and logging 2026-04-09 11:23:37 -04:00

Gen 3 ADV OU Battle Simulator

A fast Gen 3 ADV OU battle simulator for AI training, combining Pokémon Showdown's battle rules with an optimized Zig-based engine.

Overview

This project aims to replace Showdown simulation calls with a faster Zig backend (engine) while maintaining parity with Showdown's Gen 3 OU behavior. The goal is to significantly improve throughput for AI self-play training.

Components

  • pokemon-showdown/: Reference simulator and test harness
  • engine/: Optimized simulator core (Gen 3 port in progress under src/lib/gen3)

Quick Start

# Build Showdown
cd pokemon-showdown && npm install && npm run build

# Build engine
cd engine && npm install && npm run compile

# Build engine native addon
cd engine && node src/bin/install-pkmn-engine

Status

  • Showdown and engine build and run on Linux x86_64
  • Gen 3 module scaffold with ~10k lines of Zig implemented
  • Core battle mechanics partially implemented

Documentation

Requirements

  • Node.js >= 16.0.0
  • npm
  • Zig 0.16.0+ (bundled in engine/build/bin/zig/)