オブジェクト指向じゃんけんゲームの Ruby 移植版

前回エントリの C# バージョンの、Ruby 移植版です。 module JankenAsobi class Player def initialize @wincount = 0 end attr_reader :wincount, :name def count @wincount += 1 end end class Cp < Player def initialize @name = "Computer" super end def show_hand rand(3) end end class Man < Player def initial…