ElectionsBot/src/elections/1864.ts

214 lines
5.1 KiB
TypeScript
Raw Normal View History

2024-06-04 00:43:42 -04:00
import { readFile } from "node:fs/promises";
import Election from "../election.js";
const Presidential_1864 = {
title: "1864 United States Presidential Election Simulator",
shortname: "1864",
description: "The CalubViem Press has rewritten history and called the 1864 United States Presidential Election for $WINNER!",
svg: await readFile("assets/ElectoralCollege1864.svg", "utf-8"),
candidates: [
{
name: "Abraham Lincoln",
party: "National Union",
color: "#BF1D29",
},
{
name: "George B. McClellan",
party: "Democratic",
color: "#1C408C",
},
],
states: {
"CA": {
electoralVotes: 5,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"CT": {
electoralVotes: 6,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"DE": {
electoralVotes: 3,
odds: {
"National Union": 0.5,
"Democratic": 0.5,
}
},
"IA": {
electoralVotes: 8,
odds: {
"National Union": 0.95,
"Democratic": 0.05,
}
},
"IL": {
electoralVotes: 16,
odds: {
"National Union": 0.8,
"Democratic": 0.2,
}
},
"IN": {
electoralVotes: 13,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"KS": {
electoralVotes: 3,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"KY": {
electoralVotes: 11,
odds: {
"National Union": 0.2,
"Democratic": 0.8,
}
},
"LA": {
electoralVotes: 7,
odds: {
"National Union": 0.2,
"Democratic": 0.8,
}
},
"MA": {
electoralVotes: 12,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"MD": {
electoralVotes: 7,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"ME": {
electoralVotes: 7,
odds: {
"National Union": 0.9,
"Democratic": 0.1,
}
},
"MI": {
electoralVotes: 8,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"MN": {
electoralVotes: 4,
odds: {
"National Union": 0.8,
"Democratic": 0.2,
}
},
"MO": {
electoralVotes: 11,
odds: {
"National Union": 0.99,
"Democratic": 0.01,
}
},
"NH": {
electoralVotes: 5,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"NV": {
electoralVotes: 2,
odds: {
"National Union": 0.9,
"Democratic": 0.1,
}
},
"NJ": {
electoralVotes: 7,
odds: {
"National Union": 0.4,
"Democratic": 0.6,
}
},
"NY": {
electoralVotes: 33,
odds: {
"National Union": 0.55,
"Democratic": 0.45,
}
},
"OH": {
electoralVotes: 21,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"OR": {
electoralVotes: 3,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"PA": {
electoralVotes: 26,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"RI": {
electoralVotes: 4,
odds: {
"National Union": 0.95,
"Democratic": 0.05,
}
},
"TN": {
electoralVotes: 10,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"VT": {
electoralVotes: 5,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"WI": {
electoralVotes: 8,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"WV": {
electoralVotes: 5,
odds: {
"National Union": 0.99,
"Democratic": 0.01,
}
},
}
}
export default Presidential_1864 as Election;