In Pandemic, the fate of the world is in your hand, do you have what it takes to prevent humanity from being wiped out from a deadly disease?! The game runs as a turn based game in which you have a set amount of action points to spend per move. You can spend these points on researching a cure for the disease, moving to different cities around the world, and you have the ability to treat cities that are infected, use your points wisely to keep the disease under control!
To access our game you have the option to clone our code onto your own computer. From there here are the steps you will want to follow
Spec | Example Input | Back-end Process | Expected Output |
---|---|---|---|
Page loads: Start button (number of players form?) Map |
- | - | - |
Clicking start game/new game initializes a new game: cities are drawn player icon set in start city initial infection round stats: actions start at 4 |
click button | new Player object, new Game object, City objects | Player Token: Seattle Stats: p1 Actions: 4 Tokyo: 2 Paris: 0 Seattle: 0 |
When game starts, three cities are randomly infected | click button | Player Token: Seattle Stats: p1 Actions: 4 Tokyo: 2 Paris: 1 Seattle: 0 |
|
When P1 has no actions, they can't treat cities, research, or travel - only option to end turn | p1 Actions: 0 | p1 Actions: 0 end turn |
|
When P1 chooses to end turn, cities are infected and action points reset | "end turn" | infect current city by 2 | seattle: 2, action reset to 4 |
When P1 chooses to end turn, cities are infected and action points reset | "end turn" | infect 2 random cities by 1 | seattle: 1, tokyo: 1, action reset to 4 |
When P1 chooses to end turn, cities are infected and action points reset | "end turn" | infect 2 random cities that either a) already have disease > 0 or b) neighbor a city with disease > 0 | seattle: 1, tokyo: 1, action reset to 4 |
When P1 has 1 or more actions, they may choose to treat, travel, research, or end turn | Treat, Travel, Research, or end turn | ||
When P1 has 1 or more actions, they may only treat their current city | Player is in Seattle | Treat Seattle is an option | |
When P1 has 1 or more actions, but a city has no disease, they cannot reduce disease count by "treating" infection in a city | select "treat Paris" | Paris diseaseCount === 0 | Paris: 0 |
When P1 has 1 or more actions, and city has one or more diseaseCount, they can reduce disease count by "treating" infection in a city | Player Token: Paris Stats: p1 Actions: 4 Paris: 2 select "treat Paris" |
Player Token: Paris Stats: p1 Actions: 3 Paris: 1 Seattle: 0 |
|
When P1 has 1 or more actions, they may only travel to neighboring cities | Player is in Seattle | Options: Travel to Tokyo, Travel to LA, Travel to Toronto (not options - Paris, Moscow, Rio, Beijing, Cairo) | |
When P1 has 1 or more actions, they may spend one action point to travel to a neighboring city | Player is in Seattle, Actions: 4 --> travel to LA | Player: LA, Actions: 3 | |
When P1 has 1 or more actions, they may spend one action point research | Actions: 4 --> research, Cure research counter: 0 | Actions: 3, Cure research counter: 1 | |
When the game is over, Game over screen: Skull/Winning message stats board new game button? all game play features disabled |
- | - | - |
When cure research counter reaches 10, you win! | input: "research" when research count: 9 | Game over - p1 wins! | |
When total disease reaches 0, you win! | input: "treat" when disease count: 1 | Game over - p1 wins! | |
When total disease is maxed out (80% of cities*3), and infection should be increased beyond the maximum, it triggers a game loss | input: infection rate at 22/27 | Game over - p1 loses! |