Number Guessing Game - Untick Issues - Relational Database Course

Hi all.

Recently I am working on the Relational Database Course. I have encountered problems in the last project - Number Guessing Game Database. Some user stories testing show me untick even though all the results required in CoadRoad can be performed correctly when I run my script. Several times I have run my script but fail to figure out the reasons why I cannot pass some of the user stories. Your help will be greatly appreciated. Thank you.

Here is my GitHub repository for the number guessing game code files.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Number Guessing Game - Build a Number Guessing Game

Link to the challenge:

There’s couple details making test detect, from the script, different number of guesses and secret number than the actual one.

When guess is incorrect the Guess the secret number between 1 and 1000: is printed every time. That’s not needed. Similarly the additional line when user inputs not an integer is not expected. The latter should also be counted to the number of guesses.

1 Like

I follow your suggestions and make the corresponding corrections. Finally, all the user stories pass. Thank you for your help! :slight_smile: