I tested your dice game. Im impressed your speed of learning. And idea of that game ain't bad either considering you just started learning. Keep on coding.
Patz QuickBASIC Creations example of loop inside loop is cool one.
And you can actually do loop, inside of loop that is inside of loop
I also noticed you use DO LOOP instead of GOTO and thats a good sign.
Nice to notice also your way now, how you comment your code.
Every line dont need commenting, and in your program, Print"prints outs" with few comment lines explains enough. Keep on same way and youre in good "run"
Code: Select all
LOCATE 4, 11: PRINT "00000000000000000000000000"
LOCATE 5, 11: PRINT "00000000000000000000000000"
LOCATE 6, 11: PRINT "00000000000000000000000000"
LOCATE 7, 11: PRINT "00000000000000000000000000"
LOCATE 8, 11: PRINT "00000000000000000000000000"
LOCATE 9, 11: PRINT "00000000000000000000000000"
LOCATE 10, 11: PRINT "00000000000000000000000000"
LOCATE 11, 11: PRINT "00000000000000000000000000"
Code: Select all
For x = 4 TO 11
For y = 11 TO (how many zeros there is)
LOCATE x, y : Print "0";
NEXT y
Next x