#include #include using namespace std; const int MAXP = 10; int players[MAXP+1]; int n; string rolls; void initPlayers() { for(int i=0; i> n; while (n > 0) { iGame++; cin >> rolls; initPlayers(); int p=0, iRoll=0; while(iRoll >= 0 && rolls.length()-iRoll >= min(3,players[p])) { iRoll = processRoll(p, iRoll); p = (p+1)%n; } cout << "Game " << iGame << ":" << endl; for(int i=0; i=0 && i==p) cout << "(*)"; cout << endl; } cout << "Center:" << players[n] << endl; cin >> n; if (n>0) cout << endl; } return 0; }