LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help me with my game LabVIEW. Rest one number

I made a game for to guess one number. The player must guess one random number. The game tells the user if the number entered is less than or greater than the guess that  random number. Too, the game indicates the number of attempts of the user,for the number of attempts i maked a counter, and this  works fine, however when going to play again the counter  keeps the last value and  continues counting from the last value. I would like to help me so that each time that the user guess the number the counter return to zero.

I attached My VI

0 Kudos
Message 1 of 3
(2,136 Views)

To add this:

For to play.. run, and to enter numbers and press to enter  until you guess the number, the program indicates if the number is greater of less

0 Kudos
Message 2 of 3
(2,135 Views)

Don't use the feedback node on the shift register.  It is completely unnecessary to begin with, but it is holding the last value of the while loop and initializes the loop with that value.  Just wire a 0 constant to the incoming shift register.

0 Kudos
Message 3 of 3
(2,132 Views)