Calculate which Conservative seats Labour would have won with the votes from the Green Party.
- Requires babel with the setting of stage 0.
- Requires q-io && lodash
- Requires my results.json compilation of the 2015 General Election (#GE2015)
You can plug in a different json file in the same format as mine, or change the variables on lines 4-6 to work out the results for different combinations and elections.
Example:
Nathaniels-MacBook-Pro:calc Nathaniel$ node run.js
Amount of seats: 10 [ 'Bedford',
'Brighton Kemptown',
'Bury North',
'Croydon Central',
'Derby North',
'Gower',
'Morley & Outwood',
'Plymouth Sutton & Devonport',
'Telford',
'Weaver Vale' ]