Esempio n. 1
0
def add_mine_position_to_signal(robot, unit_signal):
    # Do nothing
    if unit_signal == 0:
        return 0
    # TODO - Implement emergency measures
    elif unit_signal == 65536 - 1:
        # Find new mine to mine
        None
    else:
        unused_store , mine_positons = utility.get_relative_mine_positions(robot)
        return communications.convert_position_to_message(*(mine_positons[unit_signal - 1]))
Esempio n. 2
0
def add_mine_position_to_signal(robot, unit_signal):
    # Do nothing
    if unit_signal == 0:
        return 0
    # TODO -
    elif unit_signal == 65536 - 1:
        # Find new mine to mine
        None
    else:
        return communications.convert_position_to_message(
            *utility.get_relative_mine_positions(robot)[unit_signal - 1])