Skip to content

Instantly share code, notes, and snippets.

@mysteriouspants
Created January 13, 2012 21:27
Show Gist options
  • Save mysteriouspants/1608791 to your computer and use it in GitHub Desktop.
Save mysteriouspants/1608791 to your computer and use it in GitHub Desktop.
Just some randomness. Probably doesn't even compile.
#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