Game TLDR:
An ancient intergalactic fight with no clear outcome over eons.
A triad of conflict, collaboration & community.
Three timelines to influence.
Using the RPS (Rock, paper, scissors) mechanic in conjunction with Timeline locations the game calls for strategic thinking and decisive playing.
Each Location is a Timeline, Past, Present & Future. These are round markers and can be influenced by cards played. Locations can swap, be blocked/locked, subtract points, add points, duplicate cards etc.
The RPS model is employed and has been renamed appropriately to fit the theme of intergalactic affairs. Satellite, Syndicate, Federation. Card effects are determined by location victor. Cards & Locations add up a score for the match, a match could be 3, 6 or 9 rounds, a match consisting of a play at each location (Where possible) The end goal is to have timeline dominance with 1 of the 3 entities. Victory is determined by both dominance and score factors. Points are allocated to players accordingly. (This is both for player progression as well as tournament participation)
Card values do not exceed 3. Allegiance Values are determined by card rarity. Cards are spread between Planets, Events and Legends, Each of these can represent any 1 of the 3 Factions (being Satellites, Syndicates, Federation)
// Function to determine the winner of the game
function playRound(playerSelection, computerSelection) {
if (playerSelection === "satellite" && computerSelection === "syndicate") {
return "You win! Satellite beats Syndicate.";
} else if (playerSelection === "syndicate" && computerSelection === "federation") {
return "You win! Syndicate beats Federation.";
} else if (playerSelection === "federation" && computerSelection === "satellite") {
return "You win! Federation beats Satellite.";
} else if (playerSelection === computerSelection) {
return "It's a tie!";
} else {
return "You lose! Try again.";
}
}
// Function to randomly select the computer's choice
function computerPlay() {
const choices = ["satellite", "syndicate", "federation"];
const randomIndex = Math.floor(Math.random() * choices.length);
return choices[randomIndex];
}
// Function to play a game of rock paper scissors
function game() {
let playerScore = 0;
let computerScore = 0;
for (let i = 0; i < 3; i++) {
const playerSelection = prompt("Choose your move: satellite, syndicate, or federation");
const computerSelection = computerPlay();
const result = playRound(playerSelection, computerSelection);
if (result.includes("win")) {
playerScore++;
} else if (result.includes("lose")) {
computerScore++;
}
console.log(result);
}
if (playerScore > computerScore) {
console.log("Congratulations! You won the game.");
} else if (playerScore < computerScore) {
console.log("You lost the game. Better luck next time.");
} else {
console.log("It's a tie. Play again to determine the winner.");
}
}
// Start the game
game();