Hello! I'm very new and was doing python as apart of my class but I have switched to C# as I plan to begin game development in the summer, I am currently creating a random number guessing game that I have been asked to make by my teacher,
here is the client brief:
After logging into a games library website and then selecting the number guessing game, the program generates a random four-digit number. The player has to keep inputting four-digit numbers on a keyboard until they guess the randomly generated number. After each unsuccessful try it should say how many numbers they got correct, but not which position they got right. At the end of the game should congratulate the user and say how many tries it took. An extended versions of the game has an easy mode which uses three-digits and shows the user which position that they guessed correctly, a medium mode as described above, and a hard mode that gives five digits instead of four. After the game is finished, ask the user for their name and input their score into a table. Show them the high score at the start of the game so that it gives a sense of competition.
Code done so far in the images sent!
The problem I have with my program currently is that I don't know how to tell the user what parts they got correct in their input.
Quick note: incase you didnt read the brief: easy and medium tell the user what numbers they got correct with the location of those numbers, hard difficulty only tells the location. and easy has 3 digits, medium has 4, hard has 5.
Please help me out, completely clueless, sorry I haven't had time to comment, I appreciate any tips or advice on how to do this, thank you.
Also if you have time, I think I can do this by myself later but I would like to return the user to the difficulty selection stage after a finished game, thank you!