summaryrefslogtreecommitdiff
path: root/modeling/productions_math.py
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@mailbox.org>2024-06-28 13:01:54 +0200
committerNiclas Dobbertin <niclas.dobbertin@mailbox.org>2024-06-28 13:01:54 +0200
commit3af823401ef8151dd298c73b10f7c03886c27e3d (patch)
tree7b33f94638bbbdad642e04cf433271a433c74fd9 /modeling/productions_math.py
parent6a0b7dad008cb8a9e48ade0dceb49082e1349c30 (diff)
fix higher multis
Diffstat (limited to 'modeling/productions_math.py')
-rw-r--r--modeling/productions_math.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py
index 5687ba9..ca7d95a 100644
--- a/modeling/productions_math.py
+++ b/modeling/productions_math.py
@@ -66,6 +66,8 @@ def init():
"tens_ans",
"ones_ans",
"mul_counter",
+ "mem_arg1",
+ "mem_arg2",
"ones_carry",
"tens_carry",
"vis_counter",
@@ -137,6 +139,8 @@ def init():
# result=min(i, j),
# )
# )
+ for i in range(0, 21):
+ for j in range(0, 21):
DM.add(
actr.makechunk(
f"plus{i}{j}", "math_op", op="add", arg1=i, arg2=j, result=i + j
@@ -215,7 +219,7 @@ def start():
# sim.step()
# if sim.current_event.action == "KEY PRESSED: SPACE":
# break
- sim.run(max_time=8)
+ sim.run(max_time=25)
print("Simulation time: ", sim.show_time())
print("goal: ", goal)
# print(list(env))