diff --git a/src/kode/Tournament.cpp b/src/kode/Tournament.cpp index 12567bef28cf6b60cbdaba088ff47b8d2c5c0925..afac80089a3110c19c58b8cd81b707010dea9b48 100644 --- a/src/kode/Tournament.cpp +++ b/src/kode/Tournament.cpp @@ -33,7 +33,7 @@ void Tournament::enterResults() playerList[searchByID(black[i],playerList)]->playedAgainst.push_back(playerList[searchByID(white[i],playerList)]->playerID); playerList[searchByID(white[i],playerList)]->white++; int answer; - cout << endl << "Enter results for table " << i+1 << "with " + cout << endl << "Enter results for table " << i+1 << " with " << playerList[searchByID(white[i],playerList)]->lastName << " as white and " << playerList[searchByID(black[i],playerList)]->lastName @@ -112,7 +112,7 @@ void Tournament::printTables() cout << endl << "Table \t\t White Player \t\t Black Player"; for (int i = 0; i < nrOfTables; ++i) { - cout << endl << i << "\t\t" + cout << endl << i+1 << "\t\t" << playerList[searchByID(white[i],playerList)]->lastName << "\t\t" << playerList[searchByID(black[i],playerList)]->lastName; } @@ -128,7 +128,7 @@ void Tournament::createMatchups() for (int i = 0; i < nrOfTables; i++) { currentPlayer = playersPlaying[0]; - for (int j = 0; j < playersPlaying.size(); j++) //finds the players opponent + for (int j = 1; j < playersPlaying.size(); j++) //finds the players opponent { if (!currentPlayer->hasPlayedAgainst(playersPlaying[j]->playerID))