this program will allow you to open games (provided you tweak the code), play quick games vs the calculator, and learn facts.
the password is preset to 2110 but you can change it in the code.
this is what i have written so far (the rock paper and scissors wont work; if someone sees why, please tell me)
Code:
the password is preset to 2110 but you can change it in the code.
this is what i have written so far (the rock paper and scissors wont work; if someone sees why, please tell me)
Code:
//"Boot" screen
ClrHome
Disp "BOOTING...
For(I,1,2500)
End
ClrHome
Disp "SYSTEM ONLINE"
For(I,1,500)
End
Disp "USER ONLINE"
For(I,1,500)
End
Disp "INITIALIZING..."
For(I,1,500)
End
ClrHome
Disp "MODULE READY"
For(I,1,500)
End
//Passcode
Input "AUTH CODE?",C
If C≠2110
Then
Disp "FAILURE"
Pause
Stop
Else
Goto P
//Greeting
Lbl P
ClrHome
Disp "GREETINGS"
Disp "STATUS: NOMINAL"
Disp "READY FOR INPUT"
Pause
ClrHome
//Main menu
Lbl D
Menu("MAIN","PLAY GAME",B,"CHAT",E,"QUIT",C)
//Gamescreen
Lbl B
Disp "NO GAMES YET"
Disp "INSTALLED"
Pause
Disp "GET GAMES HERE:"
Disp "CEMETECH.NET"
Pause
ClrHome
Goto D
//Quick quit
Lbl C
ClrHome
Stop
//Calc chat
Lbl E
Menu("WHAT DO U WANT TO DO?","FACTS",F,"PLAY GAME VS CALC",G,"BACK",I)
//Games to play
Lbl G
Menu("GAMES VS CALC","COIN TOSS",J,"R.P.S.",K,"BACK",I)
//Coin toss
Lbl J
Disp "COIN TOSS"
randInt(1,2)→Z
Pause
Disp
If Z=1
Then
Disp "ITS TAILS!"
Pause
ClrHome
Goto G
Else
Disp "ITS HEADS!"
Pause
ClrHome
Goto G
//Back
Lbl I
Goto D
//Rock, paper and scissors (in progress)
Lbl K
Disp "R.P.S"
randInt(1,3)→R
If R=1
Then
ROCK→Str1
If R=2
Then
PAPER→Str1
Else
SCISSORS→Str1
Disp "CHOOSE"
Input "1=R,2=P,3=S",T
Disp "CALC: "Str1
If T=1
Then
ROCK→Str2
If T=2
Then
PAPER→Str2
Else
SCISSORS→Str2
Disp "USER: "Str2
Pause
ClrHome
Goto G