Commit 3ceddefe authored by mrk022's avatar mrk022
Browse files

user state from input working

parent 449c84ec
......@@ -75,7 +75,7 @@ class UserState(ccm.Model): #ccm.ProductionSystem
#self.movevariables = ["7=5x-4x+2", "4x-5x+7=2"]
#self.addconstants = ["4x=5x-5","4x+5=5x"]
#self.addvariables = ["7=1x+2", "-1x+7=2"]
self.state = "none"
self.state = None
self.end = False
def get_input(self):
......@@ -149,7 +149,8 @@ class UserState(ccm.Model): #ccm.ProductionSystem
self.state = "add_constants"
else:
print("nothing triggered")
# need to do this for division and simplifying fraction
# need to do this for division and simplifying fraction
return self.state
def moveConstants(self):
print("Constants moved to one side of equation")
......@@ -173,7 +174,7 @@ class IntelligentTutor(ACTR):
def init():
cc = user.get_input()
print("USER STATE IS ", user.state) # need to get user input to translate to state
goal.set("move_constants") #user.get_state(cc)
goal.set(user.get_state(cc)) #
def moved_constants(goal="move_constants"): #user="ready:True"
#execute move constants on current equation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment