ElectionsBot/src/elections/1992.ts

438 lines
11 KiB
TypeScript
Raw Normal View History

2024-06-05 18:57:45 -04:00
import { readFile } from "node:fs/promises";
import Election from "../election.js";
const Presidential_1992 = {
title: "1992 United States Presidential Election Simulator",
shortname: "1992",
description: "The CalubViem Press has rewritten history and called the 1992 United States Presidential Election for $WINNER!",
svg: await readFile("assets/ElectoralCollege1992.svg", "utf-8"),
candidates: [
{
name: "Bill Clinton",
party: "Democratic",
color: "#1C408C",
},
{
name: "George H.W. Bush",
party: "Republican",
color: "#BF1D29",
},
{
name: "Ross Perot",
party: "Independent",
color: "#BFAB22",
}
],
states: {
"AL": {
electoralVotes: 9,
odds: {
"Republican": 0.95,
"Democratic": 0.05,
"Independent": 0,
}
},
"AK": {
electoralVotes: 3,
odds: {
"Republican": 0.5,
"Democratic": 0.3,
"Independent": 0.2,
}
},
"AZ": {
electoralVotes: 8,
odds: {
"Republican": 0.55,
"Democratic": 0.35,
"Independent": 0.1,
}
},
"AR": {
electoralVotes: 6,
odds: {
"Republican": 0.05,
"Democratic": 0.95,
"Independent": 0,
}
},
"CA": {
electoralVotes: 54,
odds: {
"Republican": 0.05,
"Democratic": 0.9,
"Independent": 0.05,
}
},
"CO": {
electoralVotes: 8,
odds: {
"Republican": 0.40,
"Democratic": 0.55,
"Independent": 0.05,
}
},
"CT": {
electoralVotes: 8,
odds: {
"Republican": 0.15,
"Democratic": 0.8,
"Independent": 0.05,
}
},
"DE": {
electoralVotes: 3,
odds: {
"Republican": 0.1,
"Democratic": 0.85,
"Independent": 0.05,
}
},
"DC": {
electoralVotes: 3,
odds: {
"Republican": 0,
"Democratic": 1,
"Independent": 0,
}
},
"FL": {
electoralVotes: 25,
odds: {
"Republican": 0.5,
"Democratic": 0.48,
"Independent": 0.02,
}
},
"GA": {
electoralVotes: 13,
odds: {
"Republican": 0.4,
"Democratic": 0.59,
"Independent": 0.01,
}
},
"HI": {
electoralVotes: 4,
odds: {
"Republican": 0.05,
"Democratic": 0.94,
"Independent": 0.01,
}
},
"ID": {
electoralVotes: 4,
odds: {
"Republican": 0.7,
"Democratic": 0.1,
"Independent": 0.2,
}
},
"IL": {
electoralVotes: 22,
odds: {
"Republican": 0.1,
"Democratic": 0.85,
"Independent": 0.05,
}
},
"IN": {
electoralVotes: 12,
odds: {
"Republican": 0.55,
"Democratic": 0.43,
"Independent": 0.02,
}
},
"IA": {
electoralVotes: 7,
odds: {
"Republican": 0.1,
"Democratic": 0.88,
"Independent": 0.02,
}
},
"KS": {
electoralVotes: 6,
odds: {
"Republican": 0.9,
"Democratic": 0.02,
"Independent": 0.08,
}
},
"KY": {
electoralVotes: 8,
odds: {
"Republican": 0.3,
"Democratic": 0.7,
"Independent": 0,
}
},
"LA": {
electoralVotes: 9,
odds: {
"Republican": 0.3,
"Democratic": 0.7,
"Independent": 0,
}
},
"ME": {
electoralVotes: 4,
odds: {
"Republican": 0.3,
"Democratic": 0.5,
"Independent": 0.2,
}
},
"MD": {
electoralVotes: 10,
odds: {
"Republican": 0.01,
"Democratic": 0.94,
"Independent": 0.01,
}
},
"MA": {
electoralVotes: 12,
odds: {
"Republican": 0,
"Democratic": 0.99,
"Independent": 0.01,
}
},
"MI": {
electoralVotes: 18,
odds: {
"Republican": 0.2,
"Democratic": 0.78,
"Independent": 0.02,
}
},
"MN": {
electoralVotes: 10,
odds: {
"Republican": 0.05,
"Democratic": 0.9,
"Independent": 0.05,
}
},
"MS": {
electoralVotes: 7,
odds: {
"Republican": 0.9,
"Democratic": 0.1,
"Independent": 0,
}
},
"MO": {
electoralVotes: 11,
odds: {
"Republican": 0.15,
"Democratic": 0.8,
"Independent": 0.05,
}
},
"MT": {
electoralVotes: 3,
odds: {
"Republican": 0.45,
"Democratic": 0.5,
"Independent": 0.05,
}
},
"NE": {
electoralVotes: 5,
odds: {
"Republican": 0.90,
"Democratic": 0.05,
"Independent": 0.05,
}
},
"NV": {
electoralVotes: 4,
odds: {
"Republican": 0.45,
"Democratic": 0.5,
"Independent": 0.05,
}
},
"NH": {
electoralVotes: 4,
odds: {
"Republican": 0.45,
"Democratic": 0.5,
"Independent": 0.05,
}
},
"NJ": {
electoralVotes: 15,
odds: {
"Republican": 0.3,
"Democratic": 0.69,
"Independent": 0.01,
}
},
"NM": {
electoralVotes: 5,
odds: {
"Republican": 0.1,
"Democratic": 0.89,
"Independent": 0.01,
}
},
"NY": {
electoralVotes: 33,
odds: {
"Republican": 0.05,
"Democratic": 0.94,
"Independent": 0.01,
}
},
"NC": {
electoralVotes: 14,
odds: {
"Republican": 0.6,
"Democratic": 0.39,
"Independent": 0.01,
}
},
"ND": {
electoralVotes: 3,
odds: {
"Republican": 0.9,
"Democratic": 0.05,
"Independent": 0.05,
}
},
"OH": {
electoralVotes: 21,
odds: {
"Republican": 0.3,
"Democratic": 0.65,
"Independent": 0.05,
}
},
"OK": {
electoralVotes: 8,
odds: {
"Republican": 0.85,
"Democratic": 0.1,
"Independent": 0.05,
}
},
"OR": {
electoralVotes: 7,
odds: {
"Republican": 0.35,
"Democratic": 0.55,
"Independent": 0.1,
}
},
"PA": {
electoralVotes: 23,
odds: {
"Republican": 0.1,
"Democratic": 0.89,
"Independent": 0.01,
}
},
"RI": {
electoralVotes: 4,
odds: {
"Republican": 0.05,
"Democratic": 0.9,
"Independent": 0.05,
}
},
"SC": {
electoralVotes: 8,
odds: {
"Republican": 0.95,
"Democratic": 0.05,
"Independent": 0,
}
},
"SD": {
electoralVotes: 3,
odds: {
"Republican": 0.6,
"Democratic": 0.35,
"Independent": 0.05,
}
},
"TN": {
electoralVotes: 11,
odds: {
"Republican": 0.2,
"Democratic": 0.8,
"Independent": 0,
}
},
"TX": {
electoralVotes: 32,
odds: {
"Republican": 0.6,
"Democratic": 0.35,
"Independent": 0.05,
}
},
"UT": {
electoralVotes: 5,
odds: {
"Republican": 0.6,
"Democratic": 0.2,
"Independent": 0.2,
}
},
"VT": {
electoralVotes: 3,
odds: {
"Republican": 0.1,
"Democratic": 0.95,
"Independent": 0.05,
}
},
"VA": {
electoralVotes: 13,
odds: {
"Republican": 0.8,
"Democratic": 0.2,
"Independent": 0,
}
},
"WA": {
electoralVotes: 11,
odds: {
"Republican": 0.25,
"Democratic": 0.70,
"Independent": 0.05,
}
},
"WV": {
electoralVotes: 5,
odds: {
"Republican": 0.1,
"Democratic": 0.9,
"Independent": 0,
}
},
"WI": {
electoralVotes: 11,
odds: {
"Republican": 0.2,
"Democratic": 0.75,
"Independent": 0.05,
}
},
"WY": {
electoralVotes: 3,
odds: {
"Republican": 0.85,
"Democratic": 0.08,
"Independent": 0.07,
}
}
}
}
export default Presidential_1992 as Election;