Game Design, Game Development, Math, Games, Mathematics.
be restored p, the number of good potions (n — p), the number of bad potions Thus, if p is odd, he won’t be able to fully restore his health with this number of potions. Knowing the number of good potions, we can easily find bad ones. For example, for a total number of 8 we get: Any attempt to