_format was an internal variable that wasn't used, and recorded the generation of the AbstractBattle, so I changed _format to hold the format of the battle, aligning with Showdown protocol via the python equivalent to Showdown's parsing
Stored generational info (the int) in _gen
Added gen and format as properties of AbstractBattle
Added a RunTime check to ensure that AbstractBattle is initiated with the right gen
Added to fixture_data official showdown logs for easier parse_message testing
I did a couple of things here:
_format
was an internal variable that wasn't used, and recorded the generation of theAbstractBattle
, so I changed_format
to hold the format of the battle, aligning with Showdown protocol via the python equivalent to Showdown's parsing_gen
gen
andformat
as properties ofAbstractBattle
RunTime
check to ensure thatAbstractBattle
is initiated with the rightgen
fixture_data
official showdown logs for easierparse_message
testingbattle.format
andbattle.gen