answersLogoWhite

0

How do you make games using q basic?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

RANDOMIZE TIMER

rndNumber% = INT(RND * 100) + 1

winFlag% = 0

CLS

PRINT "PROGRAM: Guess the number"

PRINT

PRINT "I'm thinking of a number between: 1-100. You've 7 guesses..."

PRINT

PRINT "Guess No"

FOR eachGuessNo% = 1 TO 7

PRINT eachGuessNo%; "> ";

INPUT "What is my number"; guessNum%

IF guessNum% = rndNumber% THEN

PRINT "Yes, correct guess; you WIN!"

winFlag% = 1

EXIT FOR

END IF

NEXT

IF winFlag% = 0 THEN PRINT "No, you guessed WRONG! I the computer WIN!"

PRINT "My number was: "; rndNumber%

PRINT

PRINT "Again, Y/N"; yesNo$

DO

yesNo$ = INKEY$

LOOP UNTIL yesNo$ <> ""

IF UCASE$(LEFT$(yesNo$, 1)) = "Y" THEN RUN

END

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

When was Q-Games created?

Q-Games was created on 2001-08-09.


How do you print first 10 even number using for loop in q basic?

For N = 1 to 10 Print 2 * N Next N


How many letters of alphabet can you make using 5 squares?

Q: How many letters of alphabet can you make using 5 squares?


How many basic components does a robot have?

http://wiki.answers.com/Q/How_many_basic_components_does_a_robot_have" http://wiki.answers.com/Q/How_many_basic_components_does_a_robot_have" http://wiki.answers.com/Q/How_many_basic_components_does_a_robot_have"


What are some video games that begin with the letter Q?

Q-bertQ-bertQuest , Q*bert ,


What is full form of Q-basic progame?

Q - QuickB - BasicA - All- purposeS - SymbolicI - InstructionC - Code


Introduction to basic Accounting?

http://wiki.answers.com/Q/Introduction_to_basic_Accounting"


What company created QBasic?

Q - basic was created by Microsoft


Is Q BASIC a high level programming language?

Yes


What words can be made using d v a q you u o o?

Some words that you can make with the letters D V A Q U U O O are:aadadododuoquad


How do you draw Olympic symbol in q-basic?

ooo o o


How do you make an elephant head using keyboard symbols?

&#12288;&#12288;&#12288;&#12288; ______ &#12288;&#12288;&#12288;&#12288; &#12288; &#12288;&#12288; just copy, paste and enjoy!&#12288;&#12288;&#12288;&#12288;/&#12288;&#12288;&#12288;&#12288; ^\&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;~&#12288;&#12288;&#12288;&#12288;&#12288;(&#12288;*\&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;|\ )_&#12288;&#12288; \&#12288;\_\_/&#12288;&#12288; &#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;/ /\ \&#12288;&#12288;/\ \ &#12288;&#12288;&#12288;&#12288;