class Tundengine::Declarations::Tute

Constants

ROUND_POINTS

Public Instance Methods

finishes_round?(tute_value) click to toggle source
# File lib/tundengine/declarations/tute.rb, line 17
def finishes_round?(tute_value)
  tute_value.finishes_round?
end
has_tute_effect?(tute_value) click to toggle source
# File lib/tundengine/declarations/tute.rb, line 13
def has_tute_effect?(tute_value)
  tute_value.has_effect?
end
is_declarable?(hand, trump_suit) click to toggle source
# File lib/tundengine/declarations/tute.rb, line 9
def is_declarable?(hand, trump_suit)
  [Ranks::Once, Ranks::Doce].any? { |rank| hand.has_all_of? rank.instance }
end