StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
12 stars 2 forks source link

Implement RunTurn type and add case to SimulateRound() #38

Open dcarpenter31 opened 3 years ago

dcarpenter31 commented 3 years ago

This will represent a turn where a Trainer or Pokemon attempts to leave a battle.

See: https://github.com/StevensSEC/pokemonbattlelib/wiki/Requirements#run-running-away

This option has different behavior depending on if the battle is between a player Trainer and another player Trainer, a player Trainer and an NPC Trainer, or a Trainer and a wild Pokemon:

dcarpenter31 commented 3 years ago

Since we're still iterating over the battle architecture, and I'm not satisfied with my attempts to implement RunTurn in a way that covers cases where the turn is not passed by selecting Run, I'm going to drop this issue for now and move to something else.