Commit graph

23 commits

Author SHA1 Message Date
dartz
ef2ccf95f4 Add image opacity support 2024-07-25 18:46:41 -04:00
dartz
4d5dc235d1 add more election types; add image overlay to simulator (wip) 2024-07-25 18:12:51 -04:00
dartz
1c82c1d5ca display electoral votes if the election type supports it 2024-07-23 17:55:44 -04:00
dartz
b7033305ec we can save an api call here 2024-07-23 17:47:14 -04:00
dartz
a5e824d5f0 only attach map if it actually exists 2024-07-23 17:24:05 -04:00
dartz
a2a5eccdfa api test 2024-07-23 02:58:50 -04:00
e7d63c3279 add popular vote to EC elections. TODO: add turnout counts to all other elections 2024-06-18 22:57:55 -04:00
e8183499c6 add support for popular vote elections and add nk 2019 2024-06-18 21:57:56 -04:00
dartz
f073c48cc7 Add approval rating command 2024-06-05 15:58:23 -07:00
dartz
c3c543cf7e Add more elections 2024-06-05 15:57:45 -07:00
18ff28e0c2 add 1789 and 1968 2024-06-04 02:30:04 -04:00
be525180c3 defer the response to prevent a fun little race condition 2024-06-04 01:16:47 -04:00
20292a7160 fix crash when all candidates end up with <=0 odds 2024-06-04 01:11:06 -04:00
ccc2b6e205 huge election predictor overhaul 2024-06-04 00:44:03 -04:00
dartz
cc9fb21fbc oops; change "presidential election" to "senate" 2024-06-03 12:13:26 -07:00
dartz
358b904871 correction: change "Electoral Votes" to "seats" 2024-06-03 12:11:56 -07:00
dartz
dc7640692a Add polls command, add year and senate option to simulator 2024-06-03 12:02:57 -07:00
f96fc83ac4 fix extra EV 2024-06-01 17:35:43 -04:00
7473a2f724 Use crypto.randomBytes instead of Math.random 2024-06-01 17:35:05 -04:00
60d41c2ef8 add customizable candidates 2024-06-01 15:13:00 -04:00
dartz
ed4ab43caf New map 2024-06-01 14:59:02 -04:00
dartz
0e55449e7c Add bias option to simulation 2024-06-01 14:58:40 -04:00
a1dfffe237 init 2024-06-01 02:14:08 -04:00