Write a program that makes guesses to find a 4-digit secret number. The program shall continuously make a guess and prompt the user to enter the similarity. The user enters similarity values in the B+ C- format(no brute-force method allowed).
it is basically a Bulls and Cows game, but this version is designed so that the computer makes a guess using a random generator, and you tell the computer how many B+ and C- it got.
how can i go about doing this? appreciate any help.
Aucun commentaire:
Enregistrer un commentaire