LoginSignup
0
0

More than 5 years have passed since last update.

OMakeでズンドコキヨシ

Last updated at Posted at 2016-03-18

OMakeは高級すぎて面白くないなぁ。

kiyoshi.om
kiyoshi(kc) =
  cur = $(eq $(mod $(random), 2), 0)
  if $(cur)
    print($"ズン")
    kiyoshi($(if $(eq $(kc), 4), 4, $(add $(kc), 1)))
  else
    print($"ドコ")
    if $(eq $(kc), 4)
      print($"キ・ヨ・シ!")
    else
      kiyoshi(0)

kiyoshi(0)

実行方法は、

$ osh kiyoshi.om

です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0