pokemon-showdown/test/simulator
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
..
abilities Fix mistakes in tests 2017-03-17 02:22:52 -05:00
items Fix mistakes in tests 2017-03-17 02:22:52 -05:00
misc Refactor choices 2017-03-17 23:14:52 -05:00
moves Add various Z-Status Move tests (#3279) 2017-02-23 04:54:04 -06:00
index.js Remove .js extension from requires (#2725) 2016-08-30 00:04:40 -05:00