mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 22:18:18 -05:00
This contains a lot of minor refactors, but the main thing that's going
on here is that battle stream writes have been streamlined to be a lot
easier for others to use.
We even support:
./pokemon-showdown simulate-battle
which provides a stdio interface for anyone using any programming
language to simulate a battle.
30 lines
598 B
JavaScript
30 lines
598 B
JavaScript
/**
|
|
* Simulator process
|
|
* Pokemon Showdown - http://pokemonshowdown.com/
|
|
*
|
|
* This file is where the battle simulation itself happens.
|
|
*
|
|
* The most important part of the simulation happens in runEvent -
|
|
* see that function's definition for details.
|
|
*
|
|
* @license MIT license
|
|
*/
|
|
'use strict';
|
|
|
|
const Dex = require('./dex');
|
|
const Battle = require('./battle');
|
|
const Side = require('./side');
|
|
const Pokemon = require('./pokemon');
|
|
const PRNG = require('./prng');
|
|
const {BattleStream} = require('./battle-stream');
|
|
|
|
module.exports = {
|
|
Pokemon,
|
|
Side,
|
|
Battle,
|
|
PRNG,
|
|
Dex,
|
|
|
|
BattleStream,
|
|
};
|