Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.BASIC.MISC
Computer guesses your number
From
F. W.
@21:1/5 to
All
on Wed Mar 29 15:29:36 2023
10 Rem *** Computer guesses your number ***
20 Print "Welcome to the guessing game!"
25 untergrenze = 1 : obergrenze = 0 : versuch = 0 : anzahl = 0
30 Input "To what maximal number will you guess";obergrenze
40 Do
42 versuch = untergrenze + Int((obergrenze - untergrenze) / 2)
43 anzahl = anzahl + 1
46 Print "Zwischen ";untergrenze;" und ";obergrenze
50 Print "I guess ";versuch
60 Input "g(reater, s(maller, i(t is it!";antwort$
63 Select Case antwort$
64 Case "g": untergrenze = versuch : Print "Okay, greater..."
65 Case "s": obergrenze = versuch : Print "Okay, smaller..."
66 End Select
70 If antwort$ = "i" Then 90
80 Loop Until antwort$ = "i"
90 Print "I needed ";anzahl;" tries. I remain a math-champion!"
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Gwylbert
Wed Dec 25 10:24:10 2024
from
Sydney, Nsw
via
Telnet
Guest
Wed Dec 25 03:51:41 2024
from
/bin/busybox Cat /proc/self/ex
via
Raw
Bob Smith
Wed Dec 25 01:55:35 2024
from
Here
via
SSH
Bob Smith
Wed Dec 25 01:54:11 2024
from
Here
via
SSH
Keyop
Wed Dec 25 00:36:47 2024
from
Huddersfield, West Yorkshire
via
SSH
Bob Smith
Wed Dec 25 00:32:06 2024
from
Here
via
SSH
Guest
Tue Dec 24 23:42:45 2024
from
A
via
SSH
Brianm
Tue Dec 24 23:33:28 2024
from
Glasgow
via
Raw
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
379
Nodes:
16 (
2
/
14
)
Uptime:
19:48:27
Calls:
8,133
Calls today:
6
Files:
13,082
Messages:
5,856,151