This is a simple number guessing game developed using C# Forms, where players need to guess the randomly generated number.
-
Open the Program: Run the program and enter the game interface.
-
Generate Number: Click the "Generate Number" button to generate a random number between 0 and 100.
-
Guess the Number: Enter your guess in the text box and click the "Guess" button.
-
Result Evaluation: The program will provide feedback based on your guess. If you guess correctly, a message box will appear saying "You guessed it right"; if your guess is lower than the answer, the minimum number you guessed will be displayed on the screen; if your guess is higher than the answer, the maximum number you guessed will be displayed on the screen.
-
Guess Again: You can continue guessing based on the feedback until you guess the correct number.
-
Please make sure the number you enter is within the range of 0 to 100, otherwise, the program will give an appropriate error message.
-
Please enter a positive integer, otherwise, the program will give an appropriate error message.
-
You can comment out the line
label3.Text = $"Ans: {num}";
in the code to hide the answer.
Bulls-and-Cows by ShangYi7 is licensed under CC BY-NC-SA 4.0
Hope this README helps! If you need further assistance, please don't hesitate to ask.