High Low Game Help


Max_Duke_Final_count_down_1 (3).aia (3.7 MB)

Can someone please review this and let me know why it is not working. It is a high low game.

Try this:

I renamed "procedure" to something more suitable

Also learn how to switch screens correctly

Resize images to suit device dimensions

What are the rules of the high/low game?

From looking at the blocks, you just have to remember what the previous number displayed was.

Not necessarily as easy as it sounds :slight_smile:

Looking at the original blocks, we can establish an invariant relationship between the global variable OldCard and Button1.Text after we leave the "procedure" procedure:

They are always equal to each other.

That would cause both the lower and higher buttons (generous as they are) to always give the player 10 (whatever) every round.

To fix this, the two statements in the procedure need to have their order reversed:
The procedure probably needs to be called AFTER each choice has been made, and at screen initialization.

Blocks to follow.

Here's a corrected version.

I had to rename global OldCard to Hidden_Card to reduce the strain on my memory, round to round.

Calling it a card implies the existence of a deck of cards that could be shuffled and analyzed statistically by a clever player, but this version of the game is just a matter of knowing the range of numbers and seeing which side of the range has been exposed.


Max_Duke_Final_count_down_13 (1).aia (3.7 MB)
Test run