-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from loonwerks/Year_3
Restructuring for Final Delivery
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
(clear-all) | ||
|
||
(define-model count | ||
|
||
(sgp :esc t :lf .05 :trace-detail high) | ||
|
||
|
||
(chunk-type number number next) | ||
(chunk-type count-from start end count) | ||
|
||
(add-dm | ||
(one ISA number number one next two) | ||
(two ISA number number two next three) | ||
(three ISA number number three next four) | ||
(four ISA number number four next five) | ||
(five ISA number number five) | ||
(first-goal ISA count-from start two end four)) | ||
|
||
(goal-focus first-goal) | ||
|
||
(p start | ||
=goal> | ||
ISA count-from | ||
start =num1 | ||
count nil | ||
==> | ||
=goal> | ||
ISA count-from | ||
count =num1 | ||
+retrieval> | ||
ISA number | ||
number =num1 | ||
) | ||
|
||
(p increment | ||
=goal> | ||
ISA count-from | ||
count =num1 | ||
- end =num1 | ||
=retrieval> | ||
ISA number | ||
number =num1 | ||
next =num2 | ||
==> | ||
=goal> | ||
ISA count-from | ||
count =num2 | ||
+retrieval> | ||
ISA number | ||
number =num2 | ||
!output! (=num1) | ||
) | ||
|
||
(p stop | ||
=goal> | ||
ISA count-from | ||
count =num | ||
end =num | ||
=retrieval> | ||
ISA number | ||
number =num | ||
==> | ||
-goal> | ||
!output! (=num) | ||
) | ||
) |
File renamed without changes.