Class: Tundengine::Strategies::Manual
- Defined in:
- lib/tundengine/strategies/manual.rb
Instance Method Summary collapse
- #declare!(player_in_round, declaration) ⇒ Object
- #on_winning_trick!(player_in_round) ⇒ Object
- #play!(player_in_turn, card) ⇒ Object
Instance Method Details
#declare!(player_in_round, declaration) ⇒ Object
11 12 13 14 15 |
# File 'lib/tundengine/strategies/manual.rb', line 11 def declare!(player_in_round, declaration) declaration.yield_self_or_lock!(player_in_round.round) do |d| do_declare!(player_in_round, d) end end |
#on_winning_trick!(player_in_round) ⇒ Object
17 18 19 |
# File 'lib/tundengine/strategies/manual.rb', line 17 def on_winning_trick!(player_in_round) # do nothing end |
#play!(player_in_turn, card) ⇒ Object
5 6 7 8 9 |
# File 'lib/tundengine/strategies/manual.rb', line 5 def play!(player_in_turn, card) card.yield_self_or_lock!(player_in_turn.turn) do |c| do_play!(player_in_turn, c) end end |