Class: Tundengine::Declarations::LasVeinte
- Includes:
- AlgebraicDataType
- Defined in:
- lib/tundengine/declarations/las_veinte.rb
Constant Summary collapse
- ROUND_POINTS =
20
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(suit) ⇒ LasVeinte
constructor
A new instance of LasVeinte.
- #is_declarable?(hand, trump_suit) ⇒ Boolean
Methods included from AlgebraicDataType
Methods inherited from Base
#finishes_round?, #has_tute_effect?
Methods included from Move
#self_or_yield, #yield_self_or_lock!
Methods included from StringifiableByClass
Constructor Details
#initialize(suit) ⇒ LasVeinte
Returns a new instance of LasVeinte.
14 15 16 17 |
# File 'lib/tundengine/declarations/las_veinte.rb', line 14 def initialize(suit) @suit = suit super() end |
Class Method Details
Instance Method Details
#identifier ⇒ Object
23 24 25 |
# File 'lib/tundengine/declarations/las_veinte.rb', line 23 def identifier [@suit] end |
#is_declarable?(hand, trump_suit) ⇒ Boolean
19 20 21 |
# File 'lib/tundengine/declarations/las_veinte.rb', line 19 def is_declarable?(hand, trump_suit) @suit != trump_suit and hand.has_knight_and_king_of?(@suit) end |