Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+7 votes

so the example that the lab has gives:

secret number: 7578
guess: 5566

but instead of just fermi ours says
pico fermi

im assuming our prog. sees that the first 5 is a digit that it's in the secret number and says pico. Then it sees that the second 5 matches the second digit in the secret number and says fermi. How to fix this?

asked in old_CSC201 by (8 points)

2 Answers

+1 vote

You don't need to fix it.

There must be a bug in the getClues() function, but you don't need to figure it out.

answered by (8 points)
+1 vote

Interesting. John, I just tested my code with 7578 as the secret number and a guess of 5566. My code is just giving the clue fermi.

If you see this, email me your code so I can take a look at it.

answered by (8 points)