Image missing.
A Pokémon battle simulation engine

created: May 29, 2025, 1:33 p.m. | updated: June 1, 2025, 10:15 p.m.

A minimal, complete, Pokémon battle simulation engine optimized for performance and designed for tooling, embedded systems, and artificial intelligence use cases. addImport ( "pkmn" , pkmn . import { Dex } from '@pkmn/dex' ; import { Generations } from '@pkmn/data' ; import { Battle , Choice } from '@pkmn/engine' ; const gens = new Generations ( Dex ) ; const battle = Battle . length ) ] ; let result : Result ; let c1 : Choice , c2 : Choice ; while ( ! Despite relying on the native engine code, the @pkmn/engine code is designed to also work in browsers which support WebAssembly.

1 week, 3 days ago: Hacker News