They get 6 tries to guess it. Each guess shows which letters are in the right spot, which are in the word, and which aren't in it at all.
Your friend picked a secret word (4 to 7 letters). You get 6 tries to crack it. Each guess must be a real word.
C is in the word and in the right spot.
I is in the word but in a different spot.
U is not in the word at all.