- I got bored. Small guessing game.(UPDATED)
- 06 Apr 2026 10:22:09 am
- Last edited by pat on 09 Apr 2026 01:50:28 pm; edited 1 time in total
I haven't posted in months.
So here you go.
Anyway, I replaced the Display commands with Output( commands, just to make it fancy, and I added "Previous Guess" display
Code:
So here you go.
Anyway, I replaced the Display commands with Output( commands, just to make it fancy, and I added "Previous Guess" display
Code:
ClrHome
Input "LOWER:",L
Input "UPPER:",U
ClrHome:0->T
randInt(L,U)->N
Repeat G=N
ClrHome:T+1->T
Output(6,1, "ATTEMPT:"
Output(6,9,T
Output(7,1,"PREV GUESS:"
Output(8,1,W
Prompt G
If G<N
Output(4,1,"HIGHER"
If G>N
Output(4,1,"LOWER
G->W
For(I,1,500)
End
End
Disp "YOU WON!",N
Disp "Tries:",T



