def get_controlling_groups(camp_id):
	_groups = {}
	
	for life in [LIFE[l] for l in get_all_alife_in_camp(camp_id)]:
		if not life['group']:
			continue
		
		if life['group'] in _groups:
			_groups[life['group']]['score'] += 1
		else:
			_groups[life['group']] = {'score': 1, 'id': life['group']}
	
	return _groups
dataset/ETHPy150Open flags/Reactor-3/alife/camps.py/get_controlling_groups/original