Here is a simple letter puzzle game code made by me from QBASIC when I was a grade 9 student. The main concept of this game is that different letters are given to you and you should trun it into a meaningful world. Let's see the program code :-
CLS
COLOR 3
INPUT "ENTER YOUR NAME"; N$
PRINT N$
PRINT "WELCOME TO PUZZLE GAME"
INPUT "ARE YOU READY TO PLAY (YES OR NO)"; R$
IF UCASE$(R$) = "NO" THEN GOTO LBL:
PRINT "WRITE IN UCASE"
XYZ:
PRINT "CHOOSE ANY NUMBER"
D = D + 1
PRINT "1 2 3 4"
INPUT "ENTER A NUMBER"; A
IF A = 1 THEN
PRINT "THE PUZZLE IS"
PRINT " T E R E S E V"
INPUT "ENTER THE CORRECT ANSWER"; F$
IF F$ = "EVEREST" THEN
COLOR 2
C = C + 1
PRINT N$
PRINT "YOU GAVE CORRECT ANSWER"
ELSE
COLOR 13
W = W + 1
PRINT "YOU GAVE WRONG ANSWER"
PRINT "THE CORRECT ANSWER IS EVEREST"
GOTO JOCK:
END IF
END IF
IF A = 2 THEN
PRINT "THE PUZZLE IS"
PRINT " D R S I Y N T U"
INPUT "ENTER THE CORRECT ANSWER"; M$
IF M$ = "INDUSTRY" THEN
COLOR 2
C = C + 1
PRINT N$
PRINT "YOU GAVE CORRECT ANSWER"
ELSE
COLOR 13
W = W + 1
PRINT "YOU GAVE WRONG ANSWER"
PRINT "THE CORRECT ANSWER IS INDUSTRY"
GOTO JOCK:
END IF
END IF
IF A = 3 THEN
PRINT "THE PUZZLE IS"
PRINT " T I A R Y D B H"
INPUT "ENTER THE CORRECT ANSWER"; O$
IF O$ = "BIRTHDAY" THEN
COLOR 2
C = C + 1
PRINT N$
PRINT "YOU GAVE CORRECT ANSWER"
ELSE
COLOR 13
W = W + 1
PRINT "YOU GAVE WRONG ANSWER"
PRINT "THE CORRECT ANSWER IS BIRTHDAY"
GOTO JOCK:
END IF
END IF
IF A = 4 THEN
PRINT "THE PUZZLE IS"
PRINT " G S N H I E L"
INPUT "ENTER THE CORRECT ANSWER"; K$
IF K$ = "ENGLISH" THEN
COLOR 4
C = C + 1
PRINT N$
PRINT "YOU GAVE CORRECT ANSWER"
ELSE
COLOR 13
W = W + 1
PRINT "YOU GAVE WRONG ANSWER"
PRINT "THE CORRECT ANSWER IS ENGLISH"
GOTO JOCK:
END IF
END IF
JOCK:
INPUT "YOU WANT TO PLAY MORE (YES OR NO)"; Z$
IF Z$ = "YES" THEN GOTO XYZ:
PER = (C / D) * 100
PRINT "TOTAL TIME PLAYED BY YOU ="; D
PRINT "TOTAL CORRECT ANSWER IS ="; C
PRINT "TOTAL WRONG ANSWER IS ="; W
PRINT "TOTAL INTELLEGENCE % IS ="; PER
PRINT "THANKS FOR PLAYING"
GOTO PQR:
LBL:
COLOR 13
PRINT "YOU ARE NOT READY"
PRINT "SO YOU SHOULD EXIT FROM THIS GAME"
PRINT "THANKS"
PQR:
COLOR 25
PRINT "THIS GAME IS DEVELOPED BY :"
PRINT "edurat.blogspot.com"
END
[ IF YOU HAVE ANY QUERY OR SUGGESTION THEN FEEL FREE TO COMMENT BELOW. KEEP VISITING Edurat.blogspot.com TO BOOST YOUR KNOWLEDGE. THANK YOU. ]