class RpsYsc::Play

Public Instance Methods

start() click to toggle source
# File lib/rps_ysc.rb, line 61
def start
    puts"welcome to the game"
    
    loop do 
        user = Input.new
        user.init
        w1 = user.enter("user")
        pc = Input.new
        pc.init
        w2 = pc.ai
        vs = Score.new
        vs.judge(w1,w2)
        w1,w2 = 0, 0
        
    end
end