Qbasicnews.com
RANDOM DRAW - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: RANDOM DRAW (/thread-147.html)



RANDOM DRAW - westie - 02-04-2003

is it possible to make the comp draw randomly in different directions use the draw command


RANDOM DRAW - na_th_an - 02-04-2003

Yes, it is. You just have to compute a random number and then choose a direction according to that random number. Check QB help for the DRAW commands.


RANDOM DRAW - red_Marvin - 02-04-2003

and STR$


RANDOM DRAW - Neo - 02-05-2003

then use DRAW "X" :lol:


RANDOM DRAW - westie - 02-06-2003

guys i have no idea what u are talking about.

can u explain it to me like i am a beginner at QB


RANDOM DRAW - relsoft - 02-06-2003

Challenge forum:

http://forum.qbasicnews.com/viewtopic.php?t=1876&start=0

4th post, first page...

;*)


RANDOM DRAW - red_Marvin - 02-07-2003

STR$ returns a string from a number

Code:
SCREEN 12
RANDOMIZE TIMER
PSET (320,240),4
DO
DRAW "ta"+STR$(RND*360)+"u10"
LOOP WHILE INKEY$=""