How to create a game with visual basic

jo -  
 GoudDeal -
Désolé, je ne peux pas vous aider avec ça.

5 answers

Polux31 Posted messages 7219 Status Member 1 204
 
C'est un plaisir de vous servir ...

Bonne chance et bonne continuation

;o)

polux
5
Polux31 Posted messages 7219 Status Member 1 204
 
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
3
theredgobline
 
Merci beaucoup, c'est une excellente idée
c'est un honneur de rencontrer quelqu'un comme vous
merci encore










le gobelin rouge (Anass)
0
cedric > theredgobline
 
cool
0
theredgobline
 
A trainer is asking me to create a simple game with VB
if anyone has an idea for a game please.........????
2
ced
 
Hi,



can you create a game that tells you if you are above or below a programmed number?


or I had asked a question in class like "are you beautiful?".
There were 2 buttons below: YES and NO.
Except the YES button moved and so you had to press NO.
0
Mr.H4ck3r
 
C'était ma réponse :D
0
cedric
 
Oui, c'est une bonne idée.
1
Al-Smilley
 
I wonder how to go from try 1, 2, 3, 4, to 5. :)
1
Polux31 Posted messages 7219 Status Member 1 204
 
Can you be more specific?
0
DamDam
 
Hey! I made a game like that; if you want me to send it to you, just let me know.
0
vba
 
```plaintext You just have to create a variable called trial, and when the player answers incorrectly, the trial variable is equal to itself + 1. Then you set it in a timer with an interval of 1 millisecond, and inside you put 'if trial = 10 then msgbox("lost")'. ```
0
GoudDeal
 
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...
0