denniskraus14 / pandemicgame Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the board game Pandemic. Currently, console-based.
An implementation of the board game Pandemic. Currently, console-based.
Buggy. Cards from the infect discard are supposed to be reshuffled and placed back atop. Find out what is causing this.
this is the function for the action of two players on the same space transferring a card. (the card of that city unless one of the players is researcher)
This function is called when the user enters "10" during the dispatcher's turn. It should ask who the dispatcher wants to move and where they want to move them to. This is separate from the dispatcher's ability to move any pawn to another pawn. Unimplemented
Feel like this wasn't done properly. Run tests
this is the function for the action of curing a disease at a research station
Should travel between research stations be counted as a 'walk' action? Or should it have its own function. Leaning towards own function
This function gets called when the user enters "10" and it is the contingency planner's turn. It should ask which event card they would like to store(So long as they have not stored one already, it is in the discard pile, and it has not been used twice already). Each event card would need some sort of count associated with it, perhaps in a dictionary - the event card names are currently stored in a list. The contingency planner role also needs some concept of already holding a 'stored' card. And upon second use the event card should be removed form the game. Whew
This function does not remove the correct card from hand and also does not stop when it needs to.
I think I found a case where this role did not stop an outbreak cube from being placed
This function is called when the user enters "11" during the Dispatcher's turn. The function should ask who the dispatcher wants to move(including the dispatcher) and ask what pawn/location they want to be moved to.
The user must be allowed to play an event card at ANY time. Not just from the menu. A handy time to ask if they would like to use an event card is before the infect steps, right when an epidemic is drawn, and right after the infect discard pile has been reshuffled and put atop the infect deck. Event cards will remain as an option in the menu for now. DO NOT COUNT IT AS AN ACTION
this is the function for the action of a user spending a card they have to travel to that city.
Dispatcher: moving other people
Operations Expert: making a research station (DONE)
Operations Expert: discarding a card at a research station to travel anywhere
Contingency Planner: Re-draw a discarded event card (Does not count towards hand limit and is only allowed once)
Researcher: NA - edit the exchange_information() function
Medic: NA - done (test for bugs)
Scientist: NA - edit the cure() function
Quarantine Specialist - NA - make a quarantine_ability() to be called after their turn but before infect()
This is a function that gets called when the user enters "10" , and it is the Operations Expert's turn. This is one of this character's special abilities where they can discard any one city card while at a research station and teleport wherever they would like. Should ask what card should be discarded and where the user would like to go.
This function gets called in the off chance that both cards drawn from the city deck at the end of a turn are epidemics
non-researcher to non-researcher TAKE
non-researcher to non-researcher GIVE
non-researcher to researcher TAKE
non-researcher to researcher GIVE
researcher to non-researcher TAKE
researcher to non-researcher GIVE
An action on the menu of actions. A window should pop up and try to display the board in a convenient way
this is the function for the action of building a research station. players must be on the space and spend the card of that city to build a research station(unless that role is the operations expert). There are 6 total research stations available
This function is called when a player is trying to turn in a cured disease with more than the minimum amount of cards of that color needed. I.e a medic trying to cure red with 6 red cards.
This is the function of the action of picking up cube(s).
Uncured Disease & Nonmedic: 1 cube = 1 action
Cured Disease & NonMedic: All cubes (of one color) = 1 action
Uncured & Medic: All cubes( of one color) = 1 action
Cured & Medic: No t valid action (city is cured upon visiting)
The order of turns should be determined by the lowest population on the city cards they are dealt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.