Sha256: f659a79a0bb688f6697348bb9d2d0704095aae6b45bb1825286d16ce31b51438

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

[Cure.peace, Cure.cure_peace].each do |peace|
  class << peace
    HANDS =
      (["グー"] * 13) +
      (["チョキ"] * 14) +
      (["パー"] * 15) +
      ["グッチョッパー"]
    MESSAGE = <<JANKEN.freeze
ピカピカピカリン
ジャンケンポン!
(%s)
JANKEN
    def pikarin_janken
      print_by_line(MESSAGE % HANDS.sample)
    end
    alias_method :janken, :pikarin_janken
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubicure-1.3.5 lib/rubicure/cure_peace.rb
rubicure-1.3.4 lib/rubicure/cure_peace.rb
rubicure-1.3.3 lib/rubicure/cure_peace.rb
rubicure-1.3.2 lib/rubicure/cure_peace.rb
rubicure-1.3.1 lib/rubicure/cure_peace.rb
rubicure-1.3.0 lib/rubicure/cure_peace.rb
rubicure-1.2.6 lib/rubicure/cure_peace.rb
rubicure-1.2.5 lib/rubicure/cure_peace.rb