def test_is_card_playable8(): showcard = lapi.Card('o', 2) rh_card = lapi.Card('b', 6) past_cards = [rh_card] hand = [lapi.Card('e', 5), lapi.Card('o', 1), lapi.Card('b', 4)] assert not lapi.is_card_playable(lapi.Card('o', 1), hand, showcard, past_cards)
def test_is_card_playable5(): showcard = lapi.Card('e', 5) rh_card = lapi.Card('o', 10) hand = [lapi.Card('o', 4), lapi.Card('e', 8), lapi.Card('o', 5)] assert lapi.is_card_playable(lapi.Card('o', 4), hand, showcard, [rh_card])
def test_is_card_playable7(): showcard = lapi.Card('e', 5) rh_card = lapi.Card('o', 10) past_cards = [rh_card, lapi.Card('e', 1)] hand = [lapi.Card('c', 4), lapi.Card('e', 8), lapi.Card('c', 3)] assert lapi.is_card_playable(lapi.Card('e', 8), hand, showcard, past_cards)
def test_is_card_playable4(): showcard = lapi.Card('c', 3) rh_card = lapi.Card('o', 5) hand = [lapi.Card('o', 4), lapi.Card('b', 7), lapi.Card('o', 1)] assert lapi.is_card_playable(lapi.Card('o', 1), hand, showcard, [rh_card])