LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Yahtzee Game

Updated the code with RavensFan's comments.

 

You need to set the Keep array to default to 5 falses.  It currently defauts to an emtpy array, which will cause no rolling to happen.

 

Something you should do is add a counter to see how many rolls have been performed.  Then you can have the VI stop on its own after the third roll.  Hint: you will need another shift register.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 11 of 13
(1,085 Views)

Okay so Im currently working on this project as well for my class but I have absolutely no idea where to find the KeepTF and RollTF things. I dont even know what those are called. My professor isnt very good. Please help.

0 Kudos
Message 12 of 13
(515 Views)

Hi Cuda,

 

as you surely took the free beginner courses offered by NI you should know:

- those are boolean "things" from their green color

- those are controls as they are data sources

- those are arrays from the thickness of the wires coming out of them

- atleast "Keep" is a 1D array as the FOR loop autoindexes the wire to scalar values

 

What else do you need to know?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(509 Views)