2024-06-05 18:57:45 -04:00
|
|
|
import { readFile } from "node:fs/promises";
|
|
|
|
import Election from "../election.js";
|
2024-06-18 21:57:56 -04:00
|
|
|
import VoteType from "../VoteType.js";
|
2024-06-05 18:57:45 -04:00
|
|
|
|
2024-07-23 02:58:50 -04:00
|
|
|
const Presidential_1940 = {
|
|
|
|
title: "1940 United States Presidential Election Simulator",
|
|
|
|
shortname: "1940",
|
|
|
|
description: "The CalubViem Press has rewritten history and called the 1940 United States Presidential Election for $WINNER!",
|
2024-06-18 21:57:56 -04:00
|
|
|
voteType: VoteType.Electoral,
|
2024-07-23 02:58:50 -04:00
|
|
|
svg: await readFile("assets/ElectoralCollege1940.svg", "utf-8"),
|
2024-06-05 18:57:45 -04:00
|
|
|
candidates: [
|
|
|
|
{
|
2024-07-23 02:58:50 -04:00
|
|
|
name: "Franklin D. Roosevelt",
|
2024-06-05 18:57:45 -04:00
|
|
|
party: "Democratic",
|
|
|
|
color: "#1C408C",
|
|
|
|
},
|
|
|
|
{
|
2024-07-23 02:58:50 -04:00
|
|
|
name: "Wendell Wilkie",
|
2024-06-05 18:57:45 -04:00
|
|
|
party: "Republican",
|
|
|
|
color: "#BF1D29",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
states: {
|
|
|
|
"AL": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 294219,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 1
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"AZ": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 150039,
|
|
|
|
electoralVotes: 3,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 0.95,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"AR": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 200743,
|
|
|
|
electoralVotes: 9,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
|
|
|
"Republican": 0.2,
|
2024-07-23 02:58:50 -04:00
|
|
|
"Democratic": 1
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"CA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 3268791,
|
|
|
|
electoralVotes: 22,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"CO": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 549004,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 6,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.8,
|
|
|
|
"Democratic": 0.2,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"CT": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 781502,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 8,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"DE": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 136374,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 3,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"FL": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 485492,
|
|
|
|
electoralVotes: 7,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"GA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 312551,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 12,
|
|
|
|
odds: {
|
|
|
|
"Republican": 0.2,
|
2024-07-23 02:58:50 -04:00
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
2024-07-23 02:58:50 -04:00
|
|
|
"IA": {
|
|
|
|
population: 1215430,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.7,
|
|
|
|
"Democratic": 0.3,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ID": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 235168,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"IL": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 4217935,
|
|
|
|
electoralVotes: 29,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"IN": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1782747,
|
|
|
|
electoralVotes: 14,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.5,
|
|
|
|
"Democratic": 0.5,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
2024-07-23 02:58:50 -04:00
|
|
|
"KS": {
|
|
|
|
population: 860297,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 9,
|
|
|
|
odds: {
|
|
|
|
"Republican": 0.8,
|
|
|
|
"Democratic": 0.2,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"KY": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 970063,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"LA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 372305,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 10,
|
|
|
|
odds: {
|
|
|
|
"Republican": 0.1,
|
2024-07-23 02:58:50 -04:00
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ME": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 320840,
|
|
|
|
electoralVotes: 5,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.55,
|
|
|
|
"Democratic": 0.45,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"MD": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 660117,
|
|
|
|
electoralVotes: 8,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
|
|
|
"Republican": 0.45,
|
|
|
|
"Democratic": 0.55,
|
|
|
|
"American Independent": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"MA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 2026993,
|
|
|
|
electoralVotes: 17,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.6,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"MI": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 2085929,
|
|
|
|
electoralVotes: 19,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
|
|
|
"Republican": 0.5,
|
|
|
|
"Democratic": 0.5,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"MN": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1251188,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"MS": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 175824,
|
|
|
|
electoralVotes: 9,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.05,
|
|
|
|
"Democratic": 0.95,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"MO": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1833729,
|
|
|
|
electoralVotes: 15,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.35,
|
|
|
|
"Democratic": 0.75,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"MT": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 247873,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NE": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 615878,
|
|
|
|
electoralVotes: 7,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.7,
|
|
|
|
"Democratic": 0.4,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NV": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 53174,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 3,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.9,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NH": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 235419,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.6,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NJ": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1974214,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 17,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.6,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NM": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 183258,
|
|
|
|
electoralVotes: 3,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NY": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 6301596,
|
|
|
|
electoralVotes: 47,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.44,
|
|
|
|
"Democratic": 0.56,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"NC": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 822648,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 13,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ND": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 280775,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.8,
|
|
|
|
"Democratic": 0.4,
|
2024-06-05 18:57:45 -04:00
|
|
|
"American Independent": 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"OH": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 3319912,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 26,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.35,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"OK": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 826212,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.35,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"OR": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 481240,
|
|
|
|
electoralVotes: 5,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"PA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 4078714,
|
|
|
|
electoralVotes: 36,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.4,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"RI": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 321148,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"SC": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 99832,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 8,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.1,
|
|
|
|
"Democratic": 1,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"SD": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 308427,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.7,
|
|
|
|
"Democratic": 0.4,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"TN": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 522823,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 11,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.7,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"TX": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1124531,
|
|
|
|
electoralVotes: 23,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"UT": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 247819,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 4,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.2,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"VT": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 143062,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 3,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.9,
|
|
|
|
"Democratic": 0.3,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"VA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 346607,
|
|
|
|
electoralVotes: 11,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"WA": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 793833,
|
|
|
|
electoralVotes: 8,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.8,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"WV": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 868076,
|
|
|
|
electoralVotes: 8,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.3,
|
|
|
|
"Democratic": 0.9,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"WI": {
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 1405522,
|
2024-06-05 18:57:45 -04:00
|
|
|
electoralVotes: 12,
|
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.45,
|
|
|
|
"Democratic": 0.55,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"WY": {
|
|
|
|
electoralVotes: 3,
|
2024-07-23 02:58:50 -04:00
|
|
|
population: 112240,
|
2024-06-05 18:57:45 -04:00
|
|
|
odds: {
|
2024-07-23 02:58:50 -04:00
|
|
|
"Republican": 0.5,
|
|
|
|
"Democratic": 0.5,
|
2024-06-05 18:57:45 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-23 02:58:50 -04:00
|
|
|
export default Presidential_1940 as Election;
|