Example #1
0
        ############################################################
        # right now we will keep it run the whole thing (100 or 200)
        # later we should add the function that checks if no one moved
        # and break
        # check if every one stopped moving
        # if they did break
        # else pass

        evaluation_num += 1
        brain_counter += 1  # this here is very important because brain counter should keep counting!!!

    # I don't know where to put this part!
    # I think it's here!

    ########################
    e.conflict_resolution()

    # this is the brain dictionary

    for person in people:
        # the first
        key_des = "{}_des".format(person.name)
        key_min = "{}_min".format(person.name)

        # lists of positions
        min_list = []
        des_list = []

        claimed_pos = person.claimed_cells  # list of positions
        need_pos = person.need()  # list of positions for need