Talk:Promotions Expansions January 15 2013/@comment-5979389-20130115151418/@comment-5116140-20130116044021

More on Display of Alternating Modals

Adding on OiOi's comment.

Each time you open the game, your runNumber is increased by 1.

Suppose my last runNumber yesterday was 100. Then this morning when I open the game it is increased to 101. I open it again at noon and the number is 102 and so on each time I open the game.

The symbol % is used in many languages (such as Java) for the remainder operator.

Here it is simply used to test if your run number is even or odd.

Even Case: runNumber%2 == 0

The runNumber is divisible by 2, so show the Expansion Sale Modal.

Odd Case: runNumber%2 == 1

The number is odd, so not divisible by 2, so we show the Other Modal.

WIth BestSellers now over, the control for these modals may change.

Similar simple predicates (boolean tests) control many of the other options in your game experience.