I am creating a monopoly game that allows 1-6 players to play (if you choose one then you'll go up against an AI). I created a vector
vector <int> players;
and have asked for the user to enter how many players are playing
int numplayers =0 ;
vector <int> players(numplayers);
cout << "How many players will be playing this round of Monopoly? 1-6" << endl;
cin >> numplayers;
}
after the user indicates how many players are playing I need to have each player choose a game piece and then display their game piece, amount of money, eventually properties owned etc.
I'm wondering how I can move through chosen number of players in the vector and assign each the entered information.
Any information would be very helpful.
Aucun commentaire:
Enregistrer un commentaire