Guess the number
The computer picks a number and tells you higher or lower · Game ●○○
Change these if you like
Prompt
Make a number guessing game. Make it a single HTML file that opens in a browser with nothing to install and no other files. Put the CSS and JavaScript inside it. Do not use image files or any external address; use emoji or letters if you need a symbol. The computer picks a number from 1 to 100 at random. I type a guess and it says whether the answer is higher or lower. I get 7 tries. Show the tries I have left and the guesses I have already made, so I do not repeat one by accident. When I win or run out, say so clearly and offer a new game. When you are done, check the higher and lower hints against the secret number, and that a new game really picks a new number.
What it uses: One file only · Say what it is first · Decide what shows · Have it check itself
If it accepts anything typed in, ask it to "reject guesses outside the range and say why".
Paste what came back
You might also like