ElectionsBot/src/elections/1864.ts

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