5 answers
Hello,
I will translate what Ced says... you can play the simplest of games: find a number between 0 and 100 in less than 10 guesses.
The program randomly chooses a number between 0 and 100. The player must find it in 10 guesses. The computer informs the player if the number is lower or higher than the number to be found.
Try to do that and come back here if you encounter a problem... I’ll help you make it work.
Good luck
;o)
Polux
I will translate what Ced says... you can play the simplest of games: find a number between 0 and 100 in less than 10 guesses.
The program randomly chooses a number between 0 and 100. The player must find it in 10 guesses. The computer informs the player if the number is lower or higher than the number to be found.
Try to do that and come back here if you encounter a problem... I’ll help you make it work.
Good luck
;o)
Polux
A trainer is asking me to create a simple game with VB
if anyone has an idea for a game please.........????
if anyone has an idea for a game please.........????
Nothing could be simpler. Create a "While" loop that includes the condition that the player's number is different from the number drawn by the computer (Be careful not to redraw on each loop!). At the beginning of your loop, write the following line: "NbreEssai = NbreEssai +1" and it will automatically add an extra attempt for each number played by the player.
Afterward, you can have fun telling the player how many attempts they have made, adding little comments, etc...
Afterward, you can have fun telling the player how many attempts they have made, adding little comments, etc...