Let's play Rock, Paper, Scissors with Ruby I'm just looking for any tips to improve the code, particularly easier ways to change the main logic of the code so that it's shorter.

puts "Let's play rock, paper, scissors"

#scores
compScore = 0
humanScore = 0

until compScore == 5 || humanScore == 5

    puts "Select your weapon. Rock, paper or scissors?"

    human = gets.chomp.downcase
    comp = ["rock", "paper", "scissors"].sample

    #human wins
    if (human == "rock" &amp;&amp; comp == "scissors") || (human == "scissors" &amp;&amp; comp == "paper") || (human == "paper" &amp;&amp; comp == "rock")
        p "You won!"
        humanScore += 1

    #draws
    elsif (human == "rock" &amp;&amp; comp == "rock") || (human == "paper" &amp;&amp; comp == "paper") || (human == "scissors" &amp;&amp; comp == "scissors")
        p "Draw! No point awarded"

    #computer wins
    else compScore += 1
        p "You lose."   
    end

    #Resulted Scores
    p "Human Score: #{humanScore}"
    p "Computer Score: #{compScore}"

    #Resulted Choices
    p "Human chose: #{human}"
    p "Computer chose: #{comp}"
end
    #Tell who wins
    p humanScore &gt; compScore ? ("YOU WIN!") : ("COMPUTER WINS!.")
Fix your formatting. While the computer doesn't care about indentation, humans do. And code is read (by humans) many more times than it's written. And this code is hard to read.

The whole "draws" logic can be replaced with a simple check: human == comp.

Determining the winner of a "hand" in rock-paper-scissors can be done in many, many, many ways. You're checking it "manually" in a sense, by writing out all the possible combinations. But you could also assign numeric values to the choices (for instance, their index in an array), and compare those numbers instead. Or so something like this, where the player's choice is used to determine what the winning response would be and see if the computer picked that:

choices = %w(rock paper scissors).reverse

index = choices.index(player_choice)
winning_choice = choices[index - 1] 

if computer_choice == winning_choice
  # computer wins
else
  # human wins
end


(this assumes that player_choice and computer_choice have already been set and that you've checked for draws.)