Updated the Expression object to include 'wrong_response' and wrote the code needed to start the finding mutations.
This commit is contained in:
+9
-1
@@ -1,12 +1,20 @@
|
||||
class Expression:
|
||||
expression = ""
|
||||
# correct_response = 0
|
||||
wrong_response = 0
|
||||
variables = []
|
||||
|
||||
def __init__(self, expression_string, variables):
|
||||
def __init__(self, expression_string, variables, wrong_response):
|
||||
self.expression = expression_string
|
||||
self.variables = variables
|
||||
self.wrong_response = wrong_response
|
||||
|
||||
class Variable:
|
||||
name = ""
|
||||
type = ""
|
||||
starting_point = 0
|
||||
ending_point = 0
|
||||
|
||||
VARIABLE_TYPES = {
|
||||
"i" : "Interest",
|
||||
"I" : "Interest",
|
||||
|
||||
Reference in New Issue
Block a user