My work for Hoon 101. Will remain private until the class is over.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
577B

  1. :: Hoon 101 - Week 4
  2. :: ~bannum-magtus || s@p7.co.nz
  3. ::
  4. |= n=@
  5. ^- @
  6. =< (wrrrm n)
  7. |%
  8. ::
  9. :: the atom made a 'clink' as it fell into the hole
  10. ++ clink
  11. |= [a=@ b=@]
  12. ^- ?
  13. =(0 (mod a b))
  14. ::
  15. :: there was a 'clunk' as the atom fell multiple times
  16. ++ clunk
  17. |= a=@
  18. ^- ?
  19. ?|
  20. (clink a 3)
  21. (clink a 5)
  22. ==
  23. ::
  24. :: a 'bzzrp' was heard as certain atoms were vapourised
  25. ++ bzzrp
  26. |= a=@
  27. ?: (clunk a)
  28. a
  29. 0
  30. ::
  31. :: 'wrrrm' was all you could hear as the machine started up
  32. ++ wrrrm
  33. |= x=@
  34. ^- @
  35. %- roll
  36. :_ add
  37. %- turn
  38. :_ bzzrp
  39. (gulf 1 x)
  40. --