LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mastermind & Bingo Puzzle

Hello guys,

 

for school we need to make a Labview application;

 

it is a combination between the game Mastermind and Bingo. 

You need to guess a word of five letters and you have 5 chances. 

We need to build a detection if the word we guesed has the right letters and if the place is correct. 

 

for example :    WATER

 

1) DRUNK  (R correct but not correct place)

2) RANKS  (A correct, correct place)

3) WATER (correct)

 

 

We have to solve this problem with arrays that split the word in 5 bits. The teacher told us that it would go faster if you convert the array to the Ascii code... 

The array thing I understand but the problem of detect the right place and detect if the words are @ the good place I don't understand...

 

grz,

 

K

0 Kudos
Message 1 of 5
(3,773 Views)

Sow I forget the question 🙂

can somebody help me to give an example of say how to begin 

 

tnx 

 

K

0 Kudos
Message 2 of 5
(3,765 Views)

Smiley Very Happy

Like this:

Smiley Very Happy

 

Smiley Very Happy

Message Edited by jcarmody on 03-03-2009 06:11 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 5
(3,733 Views)

Seriously, now.  That was funny!

 

So you understand the array thing, good.  Look into what happens when you compare two arrays for equality and you'll have half of your result.  The other half of the challenge is to find how many letters are in the word, regardless of position.  This time you need to use a For Loop with one array auto-indexed and the other not; search for each element of the first in the second.  You'll need a shift-register for this (to keep count).

 

I have a VI that does this and I'll share more details if you'll show your work and ask specific questions about what you've done and what you're seeing.  That's how this forum works; you couldn't pay us to do your homework.  Perhaps this is why this question has gone unanswered for so long...

 

Message Edited by jcarmody on 03-03-2009 06:41 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 4 of 5
(3,723 Views)

Ok tnx,

I'll try this and send you updates of my exercise 

 

grz,

 

K

0 Kudos
Message 5 of 5
(3,699 Views)