
9.3
適切な命名
151
9
.
2
コーディングスタイルの重要性
def process(command)
if command = "s"
print "You’ ve killed the Wumpus!"
else if command = "r"
print "Sir Robin bravely runs away."
end
嵐が吹きすさぶ闇夜、
モンスターが近寄ってきた。
矢を放つには"s" を、その場から
逃げ出すには"r" を、入力せよ。
同じことを
3 3
9
.
3
適切な命名
...