Created
January 13, 2012 21:27
-
-
Save mysteriouspants/1608791 to your computer and use it in GitHub Desktop.
Just some randomness. Probably doesn't even compile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
Class Player; | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
int32_t min_players = 2; | |
int32_t max_players = 6; | |
int32_t players = 0; | |
do { | |
// do sth to get input | |
players = 4; | |
if (players >= min_players && players <= max_players) break; | |
} while (true); | |
vector<Player> _players(); | |
for (int32_t i=0; | |
i<players; | |
++i) { | |
_players.push_back(Player()); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment