Changes

Jump to: navigation, search
m
Add detail to normal card generation and speculation
==Generation of a normal monster==
I need to check this process more closely; the code is very strange and I'm not sure if this is all a bunch of mistakes on Konami's end or I am missing some things. The game looks at the attack and defense values given as guides. If the attack guide is below 1000, the attack guide is raised to 1000. If the defense guide is below 1000, the attack guide is raised to 1000. That was not a typo. For each stat S, the game then forms the interval [(3 * S) / 5, (10 * S) / 9] (division being integer division). The game will then keep generating random normal monsters until it finds one with a level at most the max level and with an attack stat lying in one of the two intervals. The first random normal monster satisfying this condition is the one generated, with one exception: if the attack does not lie in the range generated from the attack guide, and is exactly equal to (3 * defense guide) / 5, then there is only a 50% chance of the card being accepted.
Three somewhat unusual examples to try and make the subleties clearer.
One point about this procedure is it does not look at how many copies of a card the player already has. Therefore it's possible for the AI to end up with a 39 (or lower) card deck, by being given a 4th copy of a normal monster in the second padding. A good way to make this likely is to have a deck of magics and monsters such that the lower of the average attack and defense is between 3085 and 3168 (inclusive). This will force the 4- star normals to have 1900 attack, and there are only 5 such cards in the game.
 
The check on the generated card is coded very strangely. I speculate that the procedure was meant to be along the lines of
* If the attack lies in the range from the attack guide and the defense lies in the range from the defense guide, good
* Otherwise flip a coin. If tails try again, if heads then accept the card so long as one of the stats lies in the corresponding range.
==Grandpa Special Duel==
autopatrol, mover
1,993
edits

Navigation menu