title: How to implement Aces in 5-Card-Draw game?
body: <p>I'm taking an online course in Ruby programming and I need to make 5-Card Draw game as one of the projects. It  all went well until I realized that Ace can have two values.</p>
  
  <p>I've made 3 classes so far: Card, Deck and Hand. I'm currently working on a Hand class. The other two classes are below: </p>
  
  <pre><code>class Card
  
      attr_reader :number, :sign, :color
  
      def initialize(number, sign, color)
          @number = number
          @sign = sign
          @color = color
      end
  
  end
  </code></pre>
  
  <pre><code>require_relative 'card.rb'
  
  class Deck
  
      def initialize
          @deck = make_deck
      end
  
      def make_deck
          deck = []
          signs = {'Club' =&gt; 'black', 'Spade' =&gt; 'black', 'Heart' =&gt; 'red', 'Diamond' =&gt; 'red'}
          n = 1
          while n &lt; 15
              if n == 11
                  n += 1
                  next
              end
              i = 0
              4.times do
                  sign = signs.keys[i]
                  color = signs[sign]
                  deck &lt;&lt; Card.new(n, sign, color)
                  i += 1
              end
              n += 1
          end
          deck
      end
  
  end
  </code></pre>
  
  <p>So, the problem appeared when I started coding the Poker Hands in Hand class. I'm not sure how to deal with the Ace because it can have a value of either 1 or 15. Any help/suggestion is welcomed.</p>