ElectionsBot/src/elections/1940.ts
2024-07-23 02:58:50 -04:00

413 lines
No EOL
9.6 KiB
TypeScript

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