マインスイーパ風に文字をランダムに並べる
Run with Ruby on Browser
任意回数の繰り返しにはtimes
が便利。
https://scrapbox.io/files/62563a53f76729001ecb01ad.png
code:ruby
9.times do |x|
9.times do |y|
print
"⬜", "🚩", "💣"
.sample
end
puts
end