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

243 lines
No EOL
6 KiB
TypeScript

import { readFile } from "node:fs/promises";
import Election from "../election.js";
import VoteType from "../VoteType.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!",
voteType: VoteType.Electoral,
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": {
population: 105890,
electoralVotes: 5,
odds: {
"National Union": 0.7,
"Democratic": 0.3,
}
},
"CT": {
population: 86981,
electoralVotes: 6,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"DE": {
population: 16922,
electoralVotes: 3,
odds: {
"National Union": 0.5,
"Democratic": 0.5,
}
},
"IA": {
population: 138025,
electoralVotes: 8,
odds: {
"National Union": 0.9,
"Democratic": 0.1,
}
},
"IL": {
population: 348236,
electoralVotes: 16,
odds: {
"National Union": 0.8,
"Democratic": 0.3,
}
},
"IN": {
population: 280655,
electoralVotes: 13,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"KS": {
population: 21580,
electoralVotes: 3,
odds: {
"National Union": 1,
"Democratic": 0.15,
}
},
"KY": {
population: 92088,
electoralVotes: 11,
odds: {
"National Union": 0.1,
"Democratic": 0.9,
}
},
"LA": {
population: 0,
electoralVotes: 0,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"MA": {
population: 175490,
electoralVotes: 12,
odds: {
"National Union": 1,
"Democratic": 0.4,
}
},
"MD": {
population: 72892,
electoralVotes: 7,
odds: {
"National Union": 0.7,
"Democratic": 0.4,
}
},
"ME": {
population: 114797,
electoralVotes: 7,
odds: {
"National Union": 0.9,
"Democratic": 0.2,
}
},
"MI": {
population: 147662,
electoralVotes: 8,
odds: {
"National Union": 0.7,
"Democratic": 0.4,
}
},
"MN": {
population: 42422,
electoralVotes: 4,
odds: {
"National Union": 0.9,
"Democratic": 0.2,
}
},
"MO": {
population: 104346,
electoralVotes: 11,
odds: {
"National Union": 1,
"Democratic": 0.3,
}
},
"NH": {
population: 69630,
electoralVotes: 5,
odds: {
"National Union": 0.6,
"Democratic": 0.4,
}
},
"NV": {
population: 16420,
electoralVotes: 2,
odds: {
"National Union": 0.8,
"Democratic": 0.3,
}
},
"NJ": {
population: 128747,
electoralVotes: 7,
odds: {
"National Union": 0.2,
"Democratic": 0.8,
}
},
"NY": {
population: 730721,
electoralVotes: 33,
odds: {
"National Union": 0.55,
"Democratic": 0.45,
}
},
"OH": {
population: 471253,
electoralVotes: 21,
odds: {
"National Union": 0.8,
"Democratic": 0.3,
}
},
"OR": {
population: 18345,
electoralVotes: 3,
odds: {
"National Union": 0.8,
"Democratic": 0.3,
}
},
"PA": {
population: 572707,
electoralVotes: 26,
odds: {
"National Union": 0.8,
"Democratic": 0.3,
}
},
"RI": {
population: 22432,
electoralVotes: 4,
odds: {
"National Union": 1,
"Democratic": 0.3,
}
},
"TN": {
population: 0,
electoralVotes: 0,
odds: {
"National Union": 1,
"Democratic": 0,
}
},
"VT": {
population: 55742,
electoralVotes: 5,
odds: {
"National Union": 1,
"Democratic": 0.3,
}
},
"WI": {
population: 34877,
electoralVotes: 8,
odds: {
"National Union": 0.9,
"Democratic": 0.2,
}
},
"WV": {
population: 149342,
electoralVotes: 5,
odds: {
"National Union": 1,
"Democratic": 0.2,
}
},
}
}
export default Presidential_1864 as Election;