Counting
Let #(x y z)
be a collection of votes for every candidate.
- x is the number of votes in first place
- y is the number of votes in second place
- z is the number of votes in third place
Then, You should compute:
(Array with: #(3 x) with: #(2 y) with: #(1 z)) inject: 0 into: [ :result :item | (item at: 1) * (item at: 2) + result]
Thus, the ranking this year was:
- OCDebugging 77
- Hazelnut 61
- Roassal 58
- Tanker 50
- Nautilus 43
- Gradualtalk 37
- The JET Tools 36
- Cocoa-Connect 31
- SourceCity 25
- OOSCM 22
- Versionner 16
- Pegon 14
- PUIFrame 10
- Test Surgeon 8