davidstone

David Stone (davidstone)

David Stone
b90118c Removed is_switching_to_self as a function that operates on ActivePokemon. LegalSelections now accepts a Team const & as the first parameter instead of ActivePokemon const & ...
510c26d Changed ActivePokemon to use trailing return types everywhere. Moved some member functions to be free functions.
c317261 Removed clear_leech_seed member function, as it cannot be cleared separately from clear_field.
0032554 Removed member functions that provide access to the MoveCollection from ActivePokemon. Made MoveCollection a private member variable of Pokemon instead of public and provided friend ...
cf092d7 Removed macro from Pokemon.hpp. Instead just define the functions inline.
David Stone ·
David Stone
43a4838 Add in an assert that verifies that a MoveContainer never gets more than the maximum number of moves. Fixed a bug in predict_move that added ...
07b045d Changed item to string conversion to use bounded::array.
f706a2c Default construct the item in the stand-alone team predictor to Item::END instead of random garbage.
David Stone ·
David Stone
a32d9b5 Use std::decay instead of std::remove_cv and std::remove_reference in the implementation of basic_numeric_limits. This change prevents instantiation of a function that tries to return an array ...
David Stone ·
David Stone
73f1fbf Added support for non-integer types as arguments to bounded::extreme, bounded::min, and bounded::max.
04b0a59 Moved basic_numeric_limits to numeric_limits.hpp. It now ignores references and cv qualifiers.
f743693 Reduced duplication in minmax.hpp. Created a more generic solution that adds a function `extreme` that accepts a comparison function as the first argument.
David Stone ·