bradbeattie / Parallel-Elections-Calculator

Some systems seem fairer than others. This calculator helps demonstrate why.
http://elections.cognitivesandbox.com
2 stars 0 forks source link

Add ability to add or remove candidates and demographics #1

Closed bradbeattie closed 15 years ago

bradbeattie commented 15 years ago

The back-end fully supports any number of candidates and demographics, but the front end is currently limited to 3. It'd be nice if we could have some smooth way of modifying this.

bradbeattie commented 15 years ago

The primary issue I see is how the scenario arrays work when there are additional candidates and demographics. Could alter them to be legit 2D arrays and assume anything outside the bounds is 0. Could only display scenarios when candidates.length == 3 && demographics.length == 3. Shrug.

bradbeattie commented 15 years ago

Another idea. Package the demographics and candidates in the scenarios. If a scenario is chosen, just reset which demographics and candidates display.

bradbeattie commented 15 years ago

Done.