Skip to content
Snippets Groups Projects
Commit 473703de authored by TheHresvelgian's avatar TheHresvelgian
Browse files

fixed matchmaking and printing

parent 6e666835
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment