Guess the Number
Rearrange the lines · Intermediate · about 6 min
This program keeps asking for a guess until the secret number is typed, then says how many tries it took. Its lines are mixed up: put them back in an order that prints exactly the output below. Each block keeps its indentation, so you only choose the order.
Example
The program reads these lines, one at each input():
3 9 7
In the right order, it prints:
3 is wrong, try again 9 is wrong, try again Got it in 3 tries
Your program
0 of 8 placedAdd the first line from the blocks.
Blocks
8 blocks still to place
The solution opens after your first Check.