revington/libre-stv

Winners can win more than once

revington opened this issue · 0 comments

Given

 var party = {                                          
     "votes": [{                                        
         "options": [5, 0, 4, 1, 2, 3, 6, 7, 8, 9],     
         "count": 1                                     
     }, {                                               
         "options": [0, 5, 7, 2, 4, 6, 8, 9, 3, 1],     
         "count": 1                                     
     }, {                                               
         "options": [5, 7, 4, 8, 1, 9, 3, 2, 0, 6],     
         "count": 1                                     
     }, {                                               
         "options": [7, 0, 2, 8, 5, 6, 1, 3, 9, 4],     
         "count": 1                                     
     }],                                                
     options: ["a", "b", "c", "d", "e", "f", "g", "h"], 
     seats: 8                                           
 };                                                     

Option 5 will win two times.
On the second round 5 will get counted again.