def test_is_complete(): board = OFCBoard() board.front = OFCHand(['6s', '6d', '5s']) board.mid = OFCHand(['9d', '9c', '9s', '2d', '3d']) board.back = OFCHand(['Ah', '2h', '3h', '4h']) assert not board.is_complete() board.back = OFCHand(['Ah', '2h', '3h', '4h', '5h']) assert board.is_complete()
def test_available_streets(): board = OFCBoard() board.front = OFCHand(['6s', '6d', '5s']) board.mid = OFCHand(['6d', '6c', '4s', '2d', '3d']) board.back = OFCHand(['Ah', '2h', '3h', '4h', '5h']) assert board.get_free_streets() == [0, 0, 0] board.front = OFCHand(['6s', '6d']) board.mid = OFCHand(['6d', '6c', '2d', '3d']) board.back = OFCHand(['Ah', '2h', '3h', '4h', '5h']) assert board.get_free_streets() == [1, 1, 0]
def test_get_royalties(): board = OFCBoard() board.front = OFCHand(['6s', '6d', '5s']) board.mid = OFCHand(['9d', '9c', '9s', '2d', '3d']) board.back = OFCHand(['Ah', '2h', '3h', '4h', '5h']) assert board.get_royalties() == 18