Sha256: 09c18e3bdc32f7601a70745f9256858ac12b3a3ba9292ed3cc4c0e715ed5b099

Contents?: true

Size: 550 Bytes

Versions: 33

Compression:

Stored size: 550 Bytes

Contents

[Cure.peace, Cure.cure_peace].each do |peace|
  class << peace
    # rubocop:disable Performance/CollectionLiteralInLoop
    HANDS =
      (["グー"] * 13) +
      (["チョキ"] * 14) +
      (["パー"] * 15) +
      ["グッチョッパー"]
    # rubocop:enable Performance/CollectionLiteralInLoop

    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

33 entries across 33 versions & 1 rubygems

Version Path
rubicure-4.0.1 lib/rubicure/cure_peace.rb
rubicure-4.0.0 lib/rubicure/cure_peace.rb
rubicure-3.3.4 lib/rubicure/cure_peace.rb
rubicure-3.3.3 lib/rubicure/cure_peace.rb
rubicure-3.3.2 lib/rubicure/cure_peace.rb
rubicure-3.3.1 lib/rubicure/cure_peace.rb
rubicure-3.3.0 lib/rubicure/cure_peace.rb
rubicure-3.3.0.rc2 lib/rubicure/cure_peace.rb
rubicure-3.3.0.rc1 lib/rubicure/cure_peace.rb
rubicure-3.2.6 lib/rubicure/cure_peace.rb
rubicure-3.2.5 lib/rubicure/cure_peace.rb
rubicure-3.2.4 lib/rubicure/cure_peace.rb
rubicure-3.2.3 lib/rubicure/cure_peace.rb
rubicure-3.2.2 lib/rubicure/cure_peace.rb
rubicure-3.2.1 lib/rubicure/cure_peace.rb
rubicure-3.2.0 lib/rubicure/cure_peace.rb
rubicure-3.2.0.rc1 lib/rubicure/cure_peace.rb
rubicure-3.1.5 lib/rubicure/cure_peace.rb
rubicure-3.1.4 lib/rubicure/cure_peace.rb
rubicure-3.1.3 lib/rubicure/cure_peace.rb