2022-02-07から1日間の記事一覧

学習記録 (2月6日 )

<作業と学んだこと> ボウリング課題コード解説 メソッドの複数の引数が別々の箇所に参照されている。 def add_bonus(rolls, following_pinfalls) if strike?(rolls) following_pinfalls.first(2).sum elsif spare?(rolls) following_pinfalls.first else 0 e…