Beispiel #1
0
def step_impl(context, suit):
    suits = tester.driver_.get_suits_of_player_0_hand()
    assert_eq(set([suit]), suits)
Beispiel #2
0
def step_impl(context, tile):
    actual = tester.driver_.get_current_pick_of_player(0)
    assert_eq(tile, actual)
Beispiel #3
0
def step_impl(context, lvl):
    result = tester.driver_.get_level()
    assert_eq(lvl, str(result))
Beispiel #4
0
def step_impl(context, number_of_tiles):
    players = tester.driver_.get_current_status()["players"]
    assert_eq(int(number_of_tiles), len(players[0]['hand']))
    assert_eq(int(number_of_tiles), len(players[1]['hand']))
Beispiel #5
0
def step_impl(context):
    for tile in "🀝🀋🀔🀀":
        tester.force_player_1_to_pick_after_player_0_pick_and_discard(tile)
        assert_eq(tile, tester.driver_.get_last_discard())
Beispiel #6
0
def step_impl(context):
    allowed_actions = tester.get_allowed_actions()
    assert_eq([], allowed_actions)
Beispiel #7
0
def step_impl(context, possible_actions):
    allowed_actions = tester.get_allowed_actions()
    expected_actions = possible_actions.split(" ")
    assert_eq(expected_actions, allowed_actions)
Beispiel #8
0
def step_impl(context, tile):
    assert_eq(tile, tester.driver_.get_last_discard())