summaryrefslogtreecommitdiffstats
path: root/labb5/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-01 16:17:35 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-12-01 16:17:35 +0100
commitf52526f6f39b665752ecb72eedbb3a98b42c194a (patch)
tree0e44530e8c87fb61ade448c23cb7b4959e08422e /labb5/src
parente787ca8902bef1bfa75ff7964078b37bf993cf58 (diff)
downloadtddd86-f52526f6f39b665752ecb72eedbb3a98b42c194a.tar.gz
comments
Diffstat (limited to 'labb5/src')
-rwxr-xr-xlabb5/src/Boggle.cpp9
-rwxr-xr-xlabb5/src/Boggle.h16
2 files changed, 15 insertions, 10 deletions
diff --git a/labb5/src/Boggle.cpp b/labb5/src/Boggle.cpp
index d09b8b9..6d65c10 100755
--- a/labb5/src/Boggle.cpp
+++ b/labb5/src/Boggle.cpp
@@ -1,8 +1,7 @@
-// This is the .cpp file you will edit and turn in.
-// We have provided a minimal skeleton for you,
-// but you must finish it as described in the spec.
-// Also remove these comments here and add your own.
-// TODO: remove this comment header and replace it with your own
+/*
+ * TDDD86 Lab 5 - gusso230 (group 11)
+ * This file contains the implementation for the Boggle state.
+ */
#include "Boggle.h"
diff --git a/labb5/src/Boggle.h b/labb5/src/Boggle.h
index 95dd0b7..7a42fd1 100755
--- a/labb5/src/Boggle.h
+++ b/labb5/src/Boggle.h
@@ -1,8 +1,7 @@
-// This is the .h file you will edit and turn in.
-// We have provided a minimal skeleton for you,
-// but you must finish it as described in the spec.
-// Also remove these comments here and add your own, as well as on the members.
-// TODO: remove this comment header and replace it with your own
+/*
+ * TDDD86 Lab 5 - gusso230 (group 11)
+ * This file contains the structure for the Boggle state.
+ */
#ifndef _boggle_h
#define _boggle_h
@@ -91,7 +90,14 @@ public:
int get_user_words_size() const;
int get_user_score() const;
+ /*
+ * Return whether a word is a valid word in the dictionary.
+ */
bool word_is_valid(const string& word) const;
+
+ /*
+ * Return whether a word has been played by the user already.
+ */
bool word_is_unplayed(const string& word) const;
/*