summaryrefslogtreecommitdiff
path: root/modeling
diff options
context:
space:
mode:
Diffstat (limited to 'modeling')
-rw-r--r--modeling/productions_math.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py
index c8dfc8e..93c7762 100644
--- a/modeling/productions_math.py
+++ b/modeling/productions_math.py
@@ -197,6 +197,15 @@ x = Model.simulation()
x.run()
print("goal: ", goal)
print("imaginal: ", imaginal)
+# imaginal.show("hundreds_ans")
+# imaginal.show("tens_ans")
+# imaginal.show("ones_ans")
+result_ones = str(getattr(imaginal._data.copy().pop(), "ones_ans"))
+result_tens = str(getattr(imaginal._data.copy().pop(), "tens_ans"))
+result_huns = str(getattr(imaginal._data.copy().pop(), "hundreds_ans"))
+
+result_num = result_huns + result_tens + result_ones
+print(result_num)
# print(list(DM))
numbers = [x for x in list(DM) if x.typename != "number" and x.typename != "math_op"]
numbers = [x for x in list(DM) if x.typename != "number" and x.typename == "math_op"]