pokemon-showdown/test/simulator/misc
Guangcong Luo 698fb2ad9a Refactor choices
PS's choice system has now been majorly rewritten!

Battle#parseChoice has been eliminated, and Battle#choose is now a
very lightweight wrapper around the BattleSide#choose* functions, which
now handle validation.

Partial decisions have been mostly removed. You can manually construct
decisions partially with the side.choose* functions, but there's no
other support for them. Partial undo has been removed completely.

Choice tracking has been renamed from side.choiceData to side.choice.
side.choices has been removed and is now autogenerated from side.choice
when needed.

side.choiceData.decisions has been renamed side.choice.actions. In the
future, "decision" is a deprecated term and should be called "action"
wherever it shows up.

side.choiceData.waiting and side.getDecisionsFinished() have been
merged into side.isChoiceDone().

Other values in side.choiceData have either been rendered unnecessary
or renamed to something clearer.

The "skip" and "pass" choices have been merged together. Passes can
still be filled in automatically (so you can just use `/move 1` in
doubles when you have only one Pokémon left).
2017-03-17 23:14:52 -05:00
..
choice-parser.js Refactor choices 2017-03-17 23:14:52 -05:00
decisions.js Refactor choices 2017-03-17 23:14:52 -05:00
dex.js Disable mod loader test 2017-02-14 22:20:10 -06:00
eventemitter.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00
inversebattle.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00
random-teams.js refactor PRNG to its own class 2017-02-22 20:44:20 -05:00
statuses.js add mock for battle tests that can reset the RNG 2017-02-22 20:44:20 -05:00
statusmoves.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00
trapmoves.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00
turn-order.js Add test for turn order for Mega Evos with Trace 2016-11-24 22:42:03 -05:00
typechange.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00
weather.js Tests: Update Weather tests for clarity and readability (#2596) 2016-06-24 20:11:03 -07:00
weight.js Test: Use the new common#createBattle method 2016-06-17 05:45:22 -05:00