QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

HomeNewsGitHubWikiSamplesInFormGXQBjsCommunityMore…

SAMPLE: WHEEL O

screenshot.png

Author

🐝 Tom Sales

Description

Copyright (C) 1994-95 DOS Resource Guide/DOS World 
Published in Issue #17, September 1994, page 66 and 
              Issue #20, March 1995, page 64 
 
It takes clever programming indeed to create an 
interesting one-line program. You'll be amazed at 
how much can be accomplished. 

WHEEL_O.BAS lets you try your luck at a wheel of fortune. The program starts  
you out with $1000 and prompts you for the amount you want to bet and the  
number between zero and nine that you think will come up. When you're right,  
your win is added to the pot; if you're wrong, the loss is subtracted. The  
nicest thing about this game, though, is that losing doesn't cost you  
anything.

QBjs

Please note that QBjs is still in early development and support for these examples is extremely experimental (meaning will most likely not work). With that out of the way, give it a try!

File(s)

🔗 game, dos world, 254 chars