Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / twenty lines?....far too many ;D

Author
Message
Mentor
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 5th Oct 2002 16:05
and why the five commands a line limit?, and external media?, HUH!, beginers!, (LOL just kidding), but you can get a working program in FAR less than twenty lines, heres one thats an oldie, note that it uses a goto to keep the code small, goto is not normaly accepted by the code community, it`s considerd bad form, so sue me ;D

Mentor
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 3rd Nov 2002 21:00
duh!, somehow this has got shredded in the posting, it will not run and I don`t keep my source more than a few days, sorry

Mentor.

Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 5th Nov 2002 02:40
No offence but that would have been a quite dull program, even if it was less than 20 lines, compared to virtually every other contribution here so far

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 15th Nov 2002 21:21
bahh.. you guessmaster has no attatude :p mine sounds right stupid (though dosn't work propely )

set window on
set display mode 450,260,16 : ink RGB(0,255,0),1 : cls
start:
Input "select a number from 0 to ",m# : a# = rnd(m#) : g# = 1 : print "Guess my number"
do
Input "Guess ",g# : cls : n# = n#+1

if g# = a# then goto win : if g# < a# then print "Higher fool!" : if g# > a# then print "Lower fool!" : if g# > m# then print "That number is haigher than YOUR set maximum, you stupid idiot!"

loop

win:
cls : if n# = 1 then gg$ = " guess" else gg$ = " guesses" : Print "Damh you boy! you got my number in ",n#,gg$
print "untill next time fool!"

Login to post a reply

Server time is: 2024-04-26 02:03:05
Your offset time is: 2024-04-26 02:03:05