From 473703de3b5bf5aa97f67823cd0ef56f60768af2 Mon Sep 17 00:00:00 2001
From: TheHresvelgian <sigrunhog@hotmail.com>
Date: Fri, 29 Apr 2022 03:49:10 +0200
Subject: [PATCH] fixed matchmaking and printing

---
 src/kode/Tournament.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/kode/Tournament.cpp b/src/kode/Tournament.cpp
index 12567be..afac800 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))
-- 
GitLab