From 3af823401ef8151dd298c73b10f7c03886c27e3d Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Fri, 28 Jun 2024 13:01:54 +0200 Subject: fix higher multis --- modeling/productions_math.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modeling/productions_math.py') 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)) -- cgit v1.2.3