urbit/gen/hood/begin.hoon

59 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-05-12 03:31:37 +03:00
::
2016-02-05 06:05:37 +03:00
:::: /hoon/begin/hood/gen
2015-05-12 03:31:37 +03:00
::
/? 314
/- sole
2015-05-12 03:31:37 +03:00
::
::::
!:
=> |%
++ begs ,[his=@p tic=@p yen=@t ges=gens]
2015-07-14 22:34:59 +03:00
++ scug |*([a=@ b=(pole)] ?~(b ~ ?~(a ~ [-.b $(b +.b, a (dec a))])))
2015-05-12 03:31:37 +03:00
--
[sole .]
2015-09-12 03:24:51 +03:00
:- %ask
2015-05-12 03:31:37 +03:00
|= $: [now=@da eny=@uvI bec=beak]
2015-11-20 01:29:54 +03:00
[arg=_(scug *@ ~[his=*@p tic=*@p])]
safety=?(%on %off)
2015-05-12 03:31:37 +03:00
==
^- (sole-result (cask begs))
2015-11-20 01:29:54 +03:00
?. =(safety %off)
%+ sole-yo
:- %leaf
"|begin is deprecated, please invoke urbit with -w [name] -t [ticket]"
2015-11-20 01:29:54 +03:00
sole-no
2015-07-14 03:46:37 +03:00
=- ?~ arg -
=+ (fun.q.q his.arg)
?~ +.arg -
(fun.q.q tic.arg)
2015-05-12 03:31:37 +03:00
%+ sole-lo
[%& %helm-begin "your urbit: ~"]
2015-05-12 03:31:37 +03:00
%+ sole-go fed:ag
|= his=@p
%+ sole-lo
2015-06-24 21:01:25 +03:00
[%& %helm-ticket "your ticket: ~"]
2015-05-12 03:31:37 +03:00
%+ sole-go fed:ag
|= tic=@p
%+ sole-lo
2015-06-24 21:01:25 +03:00
[%& %helm-entropy "some entropy: "]
2015-05-12 03:31:37 +03:00
%+ sole-go (boss 256 (more gon qit))
|= yen=@t
=+ ney=(shax yen)
%+ sole-yo `tank`[%leaf "entropy check: {(scow %p `@p`(mug ney))}"]
2015-06-24 21:01:25 +03:00
%+ sole-so %helm-begin
2015-05-12 03:31:37 +03:00
:* his
tic
ney
::
^- gens
:- %en
=+ can=(clan his)
?- can
%czar [%czar ~]
%duke [%duke %anon ~]
%earl [%earl (scot %p his)]
%king [%king ?:(=(~doznec his) 'Urban Republic' (scot %p his))]
%pawn [%pawn ~]
==
==