powergrid-comp-345 / PowerGrid

0 stars 2 forks source link

Where are the power plants **that are not owned by any player** stored? #8

Closed denizakcal closed 5 years ago

denizakcal commented 5 years ago

(1) Assuming that I’m correct, there are two types of unused power plants, (i) the ones in the deck of cards and (ii) the ones available for purchase in the present and future markets.

(2) Was the grouping of the power plants that are not owned by any player only handled in driver files (files with a main function) so far?

If so, it’s okay if I make it so that (i) GameCard has a static std::set<GameCard> deck field and (ii) for PowerPlant to have static std::set<PowerPlant> presentMarket and static std::set<PowerPlant*> futureMarket fields, right?

(A set is similar to a vector, except that it ensures no duplicates.) (I’m asking because I think it’s relevant for the game’s AI.)