Open GassaFM opened 6 years ago
For what it's worth, starting random range from 0 instead of 1 is similar to upping all stats (attack and defense) by 1. Effectively, this increases the randomness of the outcome a little bit.
we fixed it, = next_rand(round.max_attack) + 1
https://github.com/LetItPlay/CryptoWizards-SmartContract/blob/84e9a06e0dda446c6acea786df0bd219e1afdecc/pvp/pvp.cpp#L501-L504
Here, the actual attack and defense can be 0. But the DNA battles description said they are both at least 1. So, which one is the intended behavior, the code or the document?