From af7679661260c7c9b02e8e746a10f2db42afe70b Mon Sep 17 00:00:00 2001 From: TheUltimateHacker Date: Tue, 26 May 2015 20:35:30 -0400 Subject: Minor MathQuiz errors fixed Just some variable stuff. --- shiftos_next/TerminalGames.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shiftos_next/TerminalGames.vb') diff --git a/shiftos_next/TerminalGames.vb b/shiftos_next/TerminalGames.vb index 3cb7ee2..6d4dfed 100644 --- a/shiftos_next/TerminalGames.vb +++ b/shiftos_next/TerminalGames.vb @@ -5,8 +5,9 @@ Public Sub MQInterpret(question As String, answer As Integer) Dim random As New Random() - Private correct As Boolean = False + Dim correct As Boolean = False Dim args() As String = question.Replace("What is ", "").Split(" ") + Dim cptoadd As Integer = random.Next(1, 5) Select Case args(1) Case "+" correct = (answer = CInt(args(0)) + CInt(args(2))) -- cgit v1.2.3