From a9c84061c8888ef7094d3033b92cbc1f31fa325b Mon Sep 17 00:00:00 2001
From: Loke Nesse Svelland <lokens@stud.ntnu.no>
Date: Fri, 29 Apr 2022 04:52:18 +0200
Subject: [PATCH] added storage commands, fixed include issue

---
 src/kode/checkmate.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/kode/checkmate.cpp b/src/kode/checkmate.cpp
index 93b6d9b..7c6916c 100644
--- a/src/kode/checkmate.cpp
+++ b/src/kode/checkmate.cpp
@@ -3,7 +3,6 @@
 #include <vector>   //  vector
 #include <iomanip>  //  setw
 #include <fstream>  //  ifstream, ofstream
-#include "writeToFile.cpp"
 #include "LesData3.h"
 #include "player.h"
 #include "Tournament.h"
@@ -28,8 +27,8 @@ int main()
 {
     char command;
 
-//    readFromFile();
- //   readFromFileTournament();
+    readFromFile();
+    readFromFileTournament();
     cout << endl << "Welcome to checkmate, a program for organizing chess tournaments. "
     << "Please use a single character as shown in the text when interacting with the program. "
     << "If you encounter any issues, please take contact with either the leader of the team, "
@@ -169,8 +168,8 @@ int main()
 
     }while (command != 'Q');
 
- //    writeToFileTournament();
-  //   writeToFile();
+     writeToFileTournament();
+     writeToFile();
 
     return 0;
 }
-- 
GitLab