
If the next random number is the same as the original number then this counts as an incorrect guess.That seems unfair. * The players name is used in outputted messages where applicable. * As soon as an incorrect answer is given the game finishes with an appropriate message displayed. * The player must achieve 10 correct answers to win. * The original and next number is compared to see whether the original is higher or lower and output an appropriate message. * Data types are correct for its intended purpose. If the next random number is the same as the original number then this counts as an incorrect guess. No matter if the player wins or looses an appropriate message must be displayed at the end of the game. The player must guess all 10 answers correctly to win the game. If the player guesses incorrectly the game is instantly exited with an appropriate message displayed. This process is repeated for 10 numbers in total (this includes the starting number). If they guess correctly the player must then take another guess as to whether the next number will again be higher or lower. The player will be presented with a starting number and will have to guess whether the next number will be higher or lower. The computer will then randomly generate 10 numbers between 1 and 13. The player enters their name and is stored for later use. Here are the rules given to me by my teacher: Probably need a check (if you go the random 1 to 13 route), to check that they are not the same by reselecting if necessary. What do you do if the cards are the same rank, I guess the suits have a order so technically one would be higher than the other.Ĭhoosing numbers at random won't guarantee that they will be different. But I would have preferred not to search, because there may be more high/low games out there so the it isn't assured that you'll find the high/low game desired.
Visual basic express 2015 game code#
I also assumed the High,Low game you did, but saw the code was completely whacked if that was the case, so did do a search. I agree about the OP should have posted enough of the rules to give us a clue. I don't feel like I have the time to check out the code, so if my assumption is correct, perhaps you (Sitten.) can reply, or wait for confirmation. If they were wrong, take drink up first, and then continue on.

I don't know the details, but I assume if they guess correctly, they move then guess if the next card is higher or lower than the last. Normally you deal five cards, and turn the first one face up.īased on that card, the person says whether they think the next card is higher or lower.
