mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 20:58:02 +03:00
line: refactors dynamic hints
This commit is contained in:
parent
bae6965531
commit
d9dbd54f94
@ -415,25 +415,22 @@
|
||||
?(%live %slog)
|
||||
=^ clue gen rain
|
||||
=^ real gen $(n then.n)
|
||||
=^ wave gen
|
||||
?: ?=(%live hint.n)
|
||||
(emit ~ [%hit clue]~ %hop then.real)
|
||||
(emit ~ [%slg clue]~ %hop then.real)
|
||||
=/ pol ?:(?=(%live hint.n) [%hit clue] [%slg clue])
|
||||
=^ wave gen (emit ~ [pol]~ %hop then.real)
|
||||
=^ fake gen $(n vice.n, goal [%next [%this clue] wave])
|
||||
(copy fake what.real)
|
||||
::
|
||||
%memo
|
||||
=/ fork (~(got by fizz.norm.u.h) hare.n)
|
||||
=^ funk gen rain
|
||||
=^ sunk gen rain
|
||||
=^ gunk gen rain
|
||||
=/ body=(list pole) ~[[%imm 0 gunk] [%imm fork funk]]
|
||||
?- -.goal
|
||||
%done
|
||||
=> =* dot .
|
||||
?. ?=(%done -.goal) dot
|
||||
=^ salt gen rain
|
||||
=^ mode gen (emit ~ ~ %don salt)
|
||||
$(goal [%next [%this salt] mode])
|
||||
::
|
||||
dot(goal [%next [%this salt] mode])
|
||||
=^ funk gen rain
|
||||
=^ gunk gen rain
|
||||
=^ sunk gen rain
|
||||
=^ [ned=need =site] gen
|
||||
?- -.goal
|
||||
%pick
|
||||
=^ mere gen rain
|
||||
=^ chit gen (emit ~ ~ %brn mere zero.goal once.goal)
|
||||
@ -442,10 +439,7 @@
|
||||
=^ loam gen (emit ~ ~[[%imm 0 loot] [%mew gunk sunk funk loot]] %hop zero.goal)
|
||||
=^ rome gen (emit ~ ~[[%imm 1 root] [%mew gunk sunk funk root]] %hop once.goal)
|
||||
=^ moog gen $(n then.n, zero.goal loam, once.goal rome)
|
||||
=^ cast gen (emit ~ body %mer gunk sunk funk mere chit then.moog)
|
||||
=^ fake gen $(n vice.n, goal [%next [%none ~] cast])
|
||||
=^ fear gen (copy fake what.moog)
|
||||
(copy fear [%this sunk])
|
||||
[[what.moog [%mer gunk sunk funk mere chit then.moog]] gen]
|
||||
::
|
||||
%next
|
||||
=^ [chit=next miss=next] gen (phil goal)
|
||||
@ -453,11 +447,14 @@
|
||||
=^ [misc=@uwoo salt=@uvre] gen (kerf miss)
|
||||
=^ meow gen (emit ~ [%mew gunk sunk funk salt]~ %hop misc)
|
||||
=^ real gen $(n then.n, goal [%next [%this salt] meow])
|
||||
=^ cake gen (emit ~ body %mer gunk sunk funk mere chin misc)
|
||||
=^ fake gen $(n vice.n, goal [%next [%none ~] cake])
|
||||
=^ cope gen (copy fake what.real)
|
||||
(copy cope [%this sunk])
|
||||
[[what.real [%mer gunk sunk funk mere chin misc]] gen]
|
||||
==
|
||||
=/ body=(list pole)
|
||||
~[[%imm 0 gunk] [%imm (~(got by fizz.norm.u.h) hare.n) funk]]
|
||||
=^ cake gen (emit ~ body site)
|
||||
=^ fake gen $(n vice.n, goal [%next [%none ~] cake])
|
||||
=^ cope gen (copy fake ned)
|
||||
(copy cope [%this sunk])
|
||||
::
|
||||
%bout ~| %todo !!
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user