Some of the practices described in this HOWTO are considered to be illegal as they often break internal corporate policies. Anything you do, you do at your own risk.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// taken from http://stackoverflow.com/a/31207079 | |
// assuming that only containers have value_type | |
#include <cassert> | |
#include <vector> | |
namespace detail { | |
// the whole point of this structure is to get template-based sfinae working | |
template <class... _> struct resolved {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
namespace other | |
{ | |
struct Foo {}; | |
void func(const Foo& foo) { std::cout << "yes!\n"; } | |
} // namespace other |
This is a simple command line program written in Python for calculating probability of hatching an egg with fixed number of perfect IVs.
The mechanism of IV inheritance in Pokemon (up to 7th gen) is quite simple. Parnets can pass 3 or 5 (if one holds destiny knot) of their IVs to the offspring. IVs to be passed are selected randomly, with equal probability, and do not overlap (eg. passing Attack from both parents is impossible).