// // Constants.h // #ifndef CONSTANTS_H #define CONSTANTS_H // // SIDES_BASIC // // The number of sides on a basic die. // const unsigned int SIDES_BASIC = 6; // // SIDES_CAPTIAL // // The number of sides on a die for a capital ship. Each // capital ship you have replaces a basic die with one of // these. // // Dice with this number of sides are always assigned lower // indexes that dice with the default number of sides. // // This value must always be >= than SIDES_BASIC. If it is // smaller, sub-optimal decisions will be made when rerolling // dice. // const unsigned int SIDES_CAPTIAL = 8; // // FIGHTER_MAX_EXCLUDED // // The largest number that is re-rolled if you have a fighter. // At most one die is rerolled per fighter, but it is // rerolled until a larger number is rolled. We just pick a // value in the acceptable range directly. // // If we have a capital ship die and a basic die that both roll // a number below FIGHTER_MAX_EXCLUDED, we prefer to reroll // the capital ship die. This is optimal as long as: // -> SIDES_CAPTIAL >= SIDES_BASIC // -> FIGHTER_MAX_EXCLUDED == 1 // const unsigned int FIGHTER_MAX_EXCLUDED = 1; // // BOMBER_INCREASE // // Having a bomber adds this much to your largest die. Having // 2 bombers add this to your two largest dice. You never // get to add it to the same die twice. // const unsigned int BOMBER_INCREASE = 1; // // The number of possible values the can be rolled. The array // is always this large, even though not all the elements // values are normally used. // const unsigned int POSSIBLE_VALUE_COUNT = SIDES_CAPTIAL + BOMBER_INCREASE; // // These are the primes we check when we are finding GCFs. // Larger dice could require more prime to be checked. // const unsigned int PRIME_COUNT = 4; const unsigned int A_PRIMES[PRIME_COUNT] = { 2, 3, 5, 7 }; #endif