AddLine("MathQuiz is a basic game for ShiftOS that allows you to earn Codepoints for solving math "&vbNewLine&"questions. These questions will always be (num1) (operand) (num2) = (answer)."&vbNewLine)
AddLine("(num1) and (num2) will always be integers between 1 and 10.")
AddLine("(operand) Will always be either a +, -, * (times) or / (division) statement that can change the answer.")
MQCreateQuestion()
EndIf
Ifguessthenumber=TrueThen
AddLine(" -= Guess The Number =-"&vbNewLine)
AddLine("Guess the Number is a game that allows you to earn Codepoints for")
AddLine("guessing a number between 1 and 100."&vbNewLine)
GTNStart()
EndIf
EndSub
PublicGTNCorrectAsInteger
PublicSubGTNStart()
DimrandAsNewRandom()
GTNCorrect=rand.Next(1,100)
AddLine("Choose a number between 1 and 100:")
EndSub
PublicSubGTNInterpret(numAsInteger)
Ifnum<100Andnum>0Then
IfGTNCorrect=numThen
DimrandAsNewRandom()
DimcptoaddAsInteger=rand.Next(1,10)
AddLine("Correct! You have earned "&cptoadd&" Codepoints.")