summaryrefslogtreecommitdiffstats
path: root/labb5/src/boggleplay.cpp
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-17 15:42:27 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-17 15:42:27 +0100
commitfb80ac50825c7ca1fa063d3493175b7b27adbdb1 (patch)
tree4d84895d45ca2c177ddefe11164575bf6762b3ca /labb5/src/boggleplay.cpp
parent4065799f7080260f507a5e3ea8c2d8375e735166 (diff)
downloadtddd86-fb80ac50825c7ca1fa063d3493175b7b27adbdb1.tar.gz
add given code
Diffstat (limited to 'labb5/src/boggleplay.cpp')
-rwxr-xr-xlabb5/src/boggleplay.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/labb5/src/boggleplay.cpp b/labb5/src/boggleplay.cpp
new file mode 100755
index 0000000..76bdcde
--- /dev/null
+++ b/labb5/src/boggleplay.cpp
@@ -0,0 +1,32 @@
+// You will edit and turn in this CPP file.
+// Also remove these comments here and add your own.
+// TODO: remove this comment header and replace with your own
+
+#include <cstdlib>
+#include <iostream>
+#include <iomanip>
+#include <sstream>
+#include "Boggle.h"
+#include "bogglemain.h"
+#include "strlib.h"
+// TODO: include any other header files you need
+
+/*
+ * Plays one game of Boggle using the given boggle game state object.
+ */
+void playOneGame(Boggle& boggle) {
+ // TODO: implement this function (and add any other functions you like to help you)
+
+}
+
+/*
+ * Erases all currently visible text from the output console.
+ */
+void clearConsole() {
+#if defined(_WIN32) || defined(_WIN64)
+ std::system("CLS");
+#else
+ // assume POSIX
+ std::system("clear");
+#endif
+}