lib/euchre/round.rb
#function to handle user input after for pass or pickup
function to handle user input after for pass or pickup
function to handle user input after for pass or pickup
def pickup_or_pass_input(input)
    if input["command"]
      set_trump(input)
      order_symbol_set()
      pickup_or_pass_shared_code()
    else
      next_player()
      if @pass_count == 4
        @status = "call_trump"
        ActionCable.server.broadcast(@channel,{ "status" => @status })
        sleep(0.1)
        call_trump()
      else
        pickup_or_pass()
      end
    end
  end
def pickup_or_pass_input ( input ) if input [ "command" ] set_trump ( input ) order_symbol_set ( ) pickup_or_pass_shared_code ( ) else next_player ( ) if @pass_count == 4 @status = "call_trump" ActionCable . server . broadcast ( @channel , { "status" => @status } ) sleep ( 0.1 ) call_trump ( ) else pickup_or_pass ( ) end end end
function to handle user input after for pass or pickup
function to handle user input after for pass or pickup
#set trump and card values
input
<not_specific>