lib/patience/event_handlers/drop.rb
def can_put_in_tableau?
        (@pile_beneath.empty? && @card_to_drop.rank.king?) ||
        (@card_beneath && @card_to_drop.rank.not.ace? &&
        @pile_beneath.last_card?(@card_beneath) &&
        tableau_conditions?(@card_beneath))
      end
# Returns true, if dropped card meets
# requirements for dropping into Tableau.
Returns true, if dropped card meets
requirements for dropping into Tableau.
Returns true if dropped card meets requirements for dropping into Tableau .
def can_put_in_tableau?
        (@pile_beneath.empty? && @card_to_drop.rank.king?) ||
        (@card_beneath && @card_to_drop.rank.not.ace? &&
        @pile_beneath.last_card?(@card_beneath) &&
        tableau_conditions?(@card_beneath))
      end
def can_put_in_tableau? ( @pile_beneath . empty? && @card_to_drop . rank . king? ) || ( @card_beneath && @card_to_drop . rank . not . ace? && @pile_beneath . last_card? ( @card_beneath ) && tableau_conditions? ( @card_beneath ) ) end
Returns true, if dropped card meets
requirements for dropping into Tableau.
Returns true if dropped card meets requirements for dropping into Tableau .