Python:
dictionary = {"string" : 5}
neuron = Neuron()
fusion = Fusion(dictionary)
ds:DISkillUtils = DISkillUtils()
alg1:Algorithm = ds.simpleVerbatimAlgorithm("test","hello")
neuron.algParts.append(alg1)
danger_alg:Algorithm = ds.simpleVerbatimAlgorithm("danger_test","hadoken")
neuron.algParts.append(danger_alg)
fusion.setAlgQueue(neuron)
result:str = fusion.act("","","")
print(result)
result = fusion.act("", "", "")
Traceback (most recent call last):
File "C:\Users\Lenovo\PycharmProjects\ddos1\main.py", line 803, in <module>
fusion.setAlgQueue(neuron)
File "C:\Users\Lenovo\PycharmProjects\ddos1\main.py", line 674, in setAlgQueue
heapq.heappush(self.algQueue, algorithm.clone())
TypeError: '<' not supported between instances of 'Algorithm' and 'Algorithm'