LoginSignup
2
0

More than 1 year has passed since last update.

Julia言語で湯婆婆を実装した

Last updated at Posted at 2023-01-14

今更ながら、こちらの記事
https://qiita.com/Nemesis/items/c7192a7c510788d2cba2
が震源の、「プログラミング言語で湯婆婆」をやりました。言語はJuliaです。

実装

function yubaba()
    println("契約書だよ。そこに名前を書きな。")
    name = readline()
    println("フン。$(name)というのかい。贅沢な名だねぇ。")
    newName = rand(name)
    println("今からお前の名前は$(newName)だ。いいかい、$(newName)だよ。分かったら返事をするんだ、$(newName)!!")
end

実行例

スクリーンショット 2023-01-14 21.43.29.png

2
0
1

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
2
0