urbit/gen/hood/begin.hoon
Raymond Pasco 259eb79cb8 Merge remote-tracking branches 'curtis/swaggle', 'anton/fix-init-no-data' and 'anton/fix-generators'
Conflicts:
	gen/hood/begin.hoon
	gen/moon.hoon

Fix ++swag electroplating-induced bug
Fix boot process for galaxies
Finish 151izing the source tree
2016-02-17 19:35:36 -05:00

56 lines
1.1 KiB
Plaintext

::
:::: /hoon/begin/hood/gen
::
/? 310
/- sole
::
::::
!:
=> |%
++ begs {his/@p tic/@p yen/@t ges/gens}
++ scug |*({a/@ b/(pole)} ?~(b ~ ?~(a ~ [-.b $(b +.b, a (dec a))])))
--
[sole .]
:- %ask
|= $: {now/@da eny/@uvI bec/beak}
{arg/_(scug *@ *{his/@p tic/@p $~})}
safety/?($on $off)
==
^- (sole-result (cask begs))
?. =(safety %off)
%+ sole-yo
:- %leaf
"|begin is deprecated, please invoke urbit with -w [name] -t [ticket]"
sole-no
=- -
%+ sole-lo
[%& %helm-begin "your urbit: ~"]
%+ sole-go fed:ag
|= his/@p
%+ sole-lo
[%& %helm-ticket "your ticket: ~"]
%+ sole-go fed:ag
|= tic/@p
%+ sole-lo
[%& %helm-entropy "some entropy: "]
%+ sole-go (boss 256 (more gon qit))
|= yen/@t
=+ ney=(shax yen)
%+ sole-yo `tank`[%leaf "entropy check: {(scow %p `@p`(mug ney))}"]
%+ sole-so %helm-begin
:* 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 ~]
==
==