Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def first_possible(actions, allowed):
    for v in actions:
        if v in allowed:
            return v
    raise Exception('%s not in %s' % (actions, allowed))
        


src/r/o/robopoker-HEAD/test_bots/local/wimp.py   robopoker(Download)
    api.response(
        api.first_possible(
            ('check', 'call', 'allin'),
            actions
        )

src/r/o/robopoker-HEAD/test_bots/local/check_call_any.py   robopoker(Download)
api.response(
    api.first_possible(
        ('check', 'call', 'allin'),
        actions
    )

src/r/o/robopoker-HEAD/test_bots/local/bet_raise_any.py   robopoker(Download)
api.response(
    api.first_possible(
        ('allin', 'raise', 'bet', 'call'),
        actions
    )