Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mrk022
AICogSciFinalProject
Commits
3ceddefe
Commit
3ceddefe
authored
Dec 04, 2019
by
mrk022
Browse files
user state from input working
parent
449c84ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
tutor.py
View file @
3ceddefe
...
...
@@ -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
=
"n
one
"
self
.
state
=
N
one
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment