Commit Graph

5 Commits

Author SHA1 Message Date
0679d1dd4b autopilot: append instead of appends in a loop 2020-04-24 19:15:08 +02:00
3d7de2ad39 multi: remove dead code 2019-09-10 17:21:59 +02:00
25de66d27b autopilot/interface+choice: add NodeScore type
We create a new type NodeScore which is a tuple (NodeID, score). The
weightedChoice and chooseN algorithms are altered to expect this type.

This is done in order to simplify the types we are using, since we were
only using a subset of the fields in AttachmentDirective.
2019-01-08 10:23:48 +01:00
902d6edad2 autopilot/choice: add weightedChoice tests 2018-12-19 08:27:35 +01:00
3d2a39a18c autopilot/choice_test: add chooseN tests 2018-12-19 08:27:34 +01:00