diff options
author | Dobbertin, Niclas <niclas.dobbertin@mailbox.org> | 2024-03-19 12:09:41 +0100 |
---|---|---|
committer | Dobbertin, Niclas <niclas.dobbertin@mailbox.org> | 2024-03-19 12:09:41 +0100 |
commit | ed52f56d1097000e5e37010d88bf2a4cde643811 (patch) | |
tree | aead1402b66169dfc1dc089a30fa8a07c1fdb876 | |
parent | 87ac29553b71039bb9798251873272b84d3ce345 (diff) |
update
-rw-r--r-- | modeling/productions_math.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modeling/productions_math.py b/modeling/productions_math.py index 4088546..def6fe2 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -30,7 +30,7 @@ actr.chunktype( ), ) -goal.add(actr.makechunk("", "math_goal", op="greater", task="calc")) +goal.add(actr.makechunk("", "math_goal", op="add", task="calc")) imaginal.add( actr.makechunk( "", @@ -183,6 +183,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -200,13 +201,14 @@ def addition(): arg2 =num2 """, ) - print(start_add) + print("start_add: ", start_add) add_ones = Model.productionstring( name="add_ones", string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -219,8 +221,6 @@ def addition(): arg2 =num2 result =result ==> - =goal> - isa math_goal =imaginal> isa math_op ones_ans =result @@ -239,6 +239,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -253,8 +254,6 @@ def addition(): result =ones arg2 =remainder ==> - =goal> - isa math_goal =imaginal> isa math_op op add @@ -274,6 +273,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -284,8 +284,6 @@ def addition(): ?retrieval> buffer failure ==> - =goal> - isa math_goal =imaginal> isa math_op carry None @@ -302,6 +300,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add @@ -323,6 +322,7 @@ def addition(): string=""" =goal> isa math_goal + task calc =imaginal> isa math_op op add |