LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Guessing game

So can anyone make a guessing game? The concept is, it has to have the computer  generate a serect number , and the person would have 4 chances to guess what tht number is . If they guess and the number is to true than they win. if they guess and  the number is false the computer would tell them if its to high or to low.

0 Kudos
Message 1 of 16
(7,222 Views)

To answer your question, sure, I believe I could make a guessing game.  Probably numerous other members on the forum could do it as well.

Message 2 of 16
(7,215 Views)

@Ouzi101 wrote:

So can anyone make a guessing game? The concept is, it has to have the computer  generate a serect number , and the person would have 4 chances to guess what tht number is . If they guess and the number is to true than they win. if they guess and  the number is false the computer would tell them if its to high or to low.


Yes, many people on this board can do that.

 

Are they going to write it for you, probably not.  But people here will help you with questions you have so you can write it yourself.  Post your VI and a question about what you are having problems with.

0 Kudos
Message 3 of 16
(7,210 Views)

I would post my VI but I dont even know how to start , do you by any chance know how to?

 

0 Kudos
Message 4 of 16
(7,196 Views)

Then start by writing down on a PC of paper some pseudo code as to how it would run on a PC in any generic language.

 

Have you used LabVIEW before?  If not, then I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

Is this homework?  Have you asked your instructor on how to get started?

0 Kudos
Message 5 of 16
(7,188 Views)

I got bored and made it... See attached. (LV2014)

Sorry for doing your homework.

 

You can change the range of the random number and the number of guesses in the Initialization case.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 6 of 16
(7,158 Views)

Thank you so much , but theres a bit of a problem , I  have labview 2013 and the VI you sent is 2014, anyway you can fix that ? If no its fine 

0 Kudos
Message 7 of 16
(7,140 Views)

No not homework , its a project . and yes I know what labview is im somewhat familiar with it. Its just im not 100% sure on how to start.

0 Kudos
Message 8 of 16
(7,129 Views)

Here you go. A hell of a jump start Smiley Very Happy

 

In general, the standard architecture templates that ship with LabVIEW are great starting points. I used the Simple State Machine template for this. FYI, I didn't document my code really at all. I even left the confusing template textboxes as you can see below.

Guess What.PNG

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 9 of 16
(7,112 Views)

Now in the spirit of 'giving back', do you want to do some of my work for me? Smiley LOL

 

You can choose from: 'building a test station for a compressor', 'updating a PCB design for a sbRIO breakout board' or 'adding in some additional data processing to some software for a fuel cell system' Smiley Wink


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 10 of 16
(7,090 Views)