Commit 3ceddefe by mrk022

### user state from input working

parent 449c84ec
 ... @@ -75,7 +75,7 @@ class UserState(ccm.Model): #ccm.ProductionSystem ... @@ -75,7 +75,7 @@ class UserState(ccm.Model): #ccm.ProductionSystem #self.movevariables = ["7=5x-4x+2", "4x-5x+7=2"] #self.movevariables = ["7=5x-4x+2", "4x-5x+7=2"] #self.addconstants = ["4x=5x-5","4x+5=5x"] #self.addconstants = ["4x=5x-5","4x+5=5x"] #self.addvariables = ["7=1x+2", "-1x+7=2"] #self.addvariables = ["7=1x+2", "-1x+7=2"] self.state = "none" self.state = None self.end = False self.end = False def get_input(self): def get_input(self): ... @@ -149,7 +149,8 @@ class UserState(ccm.Model): #ccm.ProductionSystem ... @@ -149,7 +149,8 @@ class UserState(ccm.Model): #ccm.ProductionSystem self.state = "add_constants" self.state = "add_constants" else: else: print("nothing triggered") 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): def moveConstants(self): print("Constants moved to one side of equation") print("Constants moved to one side of equation") ... @@ -173,7 +174,7 @@ class IntelligentTutor(ACTR): ... @@ -173,7 +174,7 @@ class IntelligentTutor(ACTR): def init(): def init(): cc = user.get_input() cc = user.get_input() print("USER STATE IS ", user.state) # need to get user input to translate to state 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" def moved_constants(goal="move_constants"): #user="ready:True" #execute move constants on current equation #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