Class: Tundengine::Strategies::Random
Instance Method Summary
collapse
Methods inherited from Automatic
#declare!, #on_winning_trick!, #play!
Instance Method Details
#declare(player_in_round) ⇒ Object
9
10
11
|
# File 'lib/tundengine/strategies/random.rb', line 9
def declare(player_in_round)
Declarations::Void.instance
end
|
#play(player_in_turn) ⇒ Object
5
6
7
|
# File 'lib/tundengine/strategies/random.rb', line 5
def play(player_in_turn)
player_in_turn.hand.playable_cards(player_in_turn.turn.trick).first.first
end
|