import { readFile } from "node:fs/promises"; import Election from "../election.js"; import VoteType from "../VoteType.js"; const Presidential_2004 = { title: "2004 United States Presidential Election Simulator", shortname: "2004", description: "The CalubViem Press has rewritten history and called the 2004 United States Presidential Election for $WINNER!", voteType: VoteType.Electoral, svg: await readFile("assets/ElectoralCollege2004.svg", "utf-8"), candidates: [ { name: "John Kerry", party: "Democratic", color: "#1C408C", }, { name: "George W. Bush", party: "Republican", color: "#BF1D29", } ], states: { "AL": { electoralVotes: 9, odds: { "Republican": 1, "Democratic": 0, } }, "AK": { electoralVotes: 3, odds: { "Republican": 1, "Democratic": 0, } }, "AZ": { electoralVotes: 10, odds: { "Republican": 0.99, "Democratic": 0.01, } }, "AR": { electoralVotes: 6, odds: { "Republican": 1, "Democratic": 0, } }, "CA": { electoralVotes: 55, odds: { "Republican": 0.01, "Democratic": 0.99, } }, "CO": { electoralVotes: 9, odds: { "Republican": 0.92, "Democratic": 0.07, } }, "CT": { electoralVotes: 7, odds: { "Republican": 0, "Democratic": 1, } }, "DE": { electoralVotes: 3, odds: { "Republican": 0, "Democratic": 1, } }, "DC": { electoralVotes: 3, odds: { "Republican": 0, "Democratic": 1, } }, "FL": { electoralVotes: 27, odds: { "Republican": 0.95, "Democratic": 0.05, } }, "GA": { electoralVotes: 15, odds: { "Republican": 1, "Democratic": 0, } }, "HI": { electoralVotes: 4, odds: { "Republican": 0, "Democratic": 1, } }, "ID": { electoralVotes: 4, odds: { "Republican": 1, "Democratic": 0, } }, "IL": { electoralVotes: 21, odds: { "Republican": 0, "Democratic": 1, } }, "IN": { electoralVotes: 11, odds: { "Republican": 1, "Democratic": 0, } }, "IA": { electoralVotes: 7, odds: { "Republican": 0.55, "Democratic": 0.45, } }, "KS": { electoralVotes: 6, odds: { "Republican": 1, "Democratic": 0, } }, "KY": { electoralVotes: 8, odds: { "Republican": 1, "Democratic": 0, } }, "LA": { electoralVotes: 9, odds: { "Republican": 1, "Democratic": 0, } }, "ME": { electoralVotes: 4, odds: { "Republican": 0.1, "Democratic": 0.9, } }, "MD": { electoralVotes: 10, odds: { "Republican": 0, "Democratic": 1, } }, "MA": { electoralVotes: 12, odds: { "Republican": 0, "Democratic": 1, } }, "MI": { electoralVotes: 17, odds: { "Republican": 0.1, "Democratic": 0.9, } }, "MN": { electoralVotes: 10, odds: { "Republican": 0.15, "Democratic": 0.85, } }, "MS": { electoralVotes: 6, odds: { "Republican": 1, "Democratic": 0, } }, "MO": { electoralVotes: 11, odds: { "Republican": 0.9, "Democratic": 0.1, } }, "MT": { electoralVotes: 3, odds: { "Republican": 1, "Democratic": 0, } }, "NE": { electoralVotes: 5, odds: { "Republican": 1, "Democratic": 0, } }, "NV": { electoralVotes: 5, odds: { "Republican": 0.85, "Democratic": 0.15, } }, "NH": { electoralVotes: 4, odds: { "Republican": 0.45, "Democratic": 0.55, } }, "NJ": { electoralVotes: 15, odds: { "Republican": 0, "Democratic": 1, } }, "NM": { electoralVotes: 5, odds: { "Republican": 0.5, "Democratic": 0.5, } }, "NY": { electoralVotes: 31, odds: { "Republican": 0, "Democratic": 1, } }, "NC": { electoralVotes: 15, odds: { "Republican": 1, "Democratic": 0, } }, "ND": { electoralVotes: 3, odds: { "Republican": 1, "Democratic": 0, } }, "OH": { electoralVotes: 20, odds: { "Republican": 0.9, "Democratic": 0.1, } }, "OK": { electoralVotes: 7, odds: { "Republican": 1, "Democratic": 0, } }, "OR": { electoralVotes: 7, odds: { "Republican": 0.15, "Democratic": 0.85, } }, "PA": { electoralVotes: 21, odds: { "Republican": 0.35, "Democratic": 0.65, } }, "RI": { electoralVotes: 4, odds: { "Republican": 0, "Democratic": 1, } }, "SC": { electoralVotes: 8, odds: { "Republican": 1, "Democratic": 0, } }, "SD": { electoralVotes: 3, odds: { "Republican": 1, "Democratic": 0, } }, "TN": { electoralVotes: 11, odds: { "Republican": 1, "Democratic": 0, } }, "TX": { electoralVotes: 34, odds: { "Republican": 1, "Democratic": 0, } }, "UT": { electoralVotes: 5, odds: { "Republican": 1, "Democratic": 0, } }, "VT": { electoralVotes: 3, odds: { "Republican": 0, "Democratic": 1, } }, "VA": { electoralVotes: 13, odds: { "Republican": 0.98, "Democratic": 0.02, } }, "WA": { electoralVotes: 11, odds: { "Republican": 0, "Democratic": 1, } }, "WV": { electoralVotes: 5, odds: { "Republican": 1, "Democratic": 0, } }, "WI": { electoralVotes: 10, odds: { "Republican": 0.47, "Democratic": 0.53, } }, "WY": { electoralVotes: 3, odds: { "Republican": 1, "Democratic": 0, } } } } export default Presidential_2004 as Election;