Commits

Show all
Author Commit Message Labels Comments Date
David Stone
Return a struct containing references / pointers, rather than passing two references to pointers into a function as output parameters.
David Stone
Use std::reference_wrapper<T const> instead of T * in predictor.cpp.
David Stone
Switched string conversion functions to avoid unnecessary string copies by using std::string const & and boost::string_ref.
David Stone
Use a little more type deduction in damage.cpp.
David Stone
Disable Transposition a little bit better to avoid warnings from clang.
David Stone
Moved away from using arrays for several look-ups, and instead just use a switch statement.
David Stone
Temporarily disable the hashing until it works properly.
David Stone
Replace team1 and team2 with attacker and defender for expectiminimax tests.
David Stone
call_move returns void instead of the damage done. call_move already does damage to the foe, but expectiminimax was doing that damage again.
David Stone
Added assertions to verify 0 <= probability <= 1.
David Stone
Changed formatting of switch statements.
David Stone
Got rid of will_be_replaced function. Use is_fainted instead.
David Stone
Changed from int16_t for storing a final score to double.
David Stone
Added assertions in case random selections are empty.
David Stone
Fixed use-after-delete error caused by storing iterators into a vector that might be reallocated.
David Stone
Fixed signed / unsigned warning.
David Stone
Test Psywave to make sure its probabilities add to approximately 1.0.
David Stone
Move evaluation uses double for the internal calculations to avoid rounding errors.
David Stone
Shuffle all of the moves of all test Pokemon.
David Stone
Simplified logic to score the active Pokemon.
David Stone
The type of the score of the stages is the type of the stage times the type of the base score, not the type of the stage times the type of the stage.
David Stone
Give Weather a user-defined default constructor.
David Stone
Fixes to work with Boost 1.56.0. Had to change use of boost::property_tree::xml_writer_settings to use the proper nested type instead of assuming it is char.
David Stone
Added missing files.
David Stone
Added some overall move evaluation tests. Fixed bug where the probability of a hit and miss were switched up, causing moves with 100% accuracy to look like they always fail.
David Stone
Added very basic test that verifies a Blissey with less health has a lower score than a Blissey with more health.
David Stone
Added a size argument to PokemonCollection's constructor.
David Stone
Team now owns the PokemonCollection and generates the ActivePokemon on demand, rather than ActivePokemon owning the PokemonCollection.
David Stone
Moved a lot of getters from member functions to free functions to ease the eventual transition of ActivePokemon's implementation.
David Stone
Removed ChanceToHit as a member variable of ActivePokemon. Instead it is calculated as needed as a local variable in expectiminimax.
  1. Prev
  2. Next