Commit graph

32 commits

Author SHA1 Message Date
dartz
7028d2f23f Fix predictions not working 2024-07-28 20:54:40 -04:00
dartz
b521b034b7 add help command 2024-07-28 20:48:01 -04:00
dartz
3d8b63e525 support viewing state results 2024-07-28 01:45:10 -04:00
dartz
c0a3b8e05a Add the rest of the predictions 2024-07-28 00:00:07 -04:00
dartz
496127a850 fix some races + add predictions 2024-07-27 22:58:56 -04:00
dartz
7ad89768e1 Add Senate simulator 2024-07-26 01:51:59 -04:00
dartz
951c2f6f29 Limit odds to prevent hang 2024-07-25 22:27:49 -04:00
dartz
1ebd111e85 make image fit 2024-07-25 22:23:39 -04:00
dartz
49c6282784 readme + check opacity 2024-07-25 19:32:30 -04:00
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