summaryrefslogtreecommitdiffstats
path: root/labb5/src/boggleplay.cpp
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-01 14:40:00 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-12-01 14:40:00 +0100
commitd4f35cf45ebc655d92cde8abb5c9a1c2822a08ba (patch)
tree84704feba48548c394e8d001d4f8707d637d7a01 /labb5/src/boggleplay.cpp
parentb94ee4b34d5829434e5b873911758a356f03792d (diff)
downloadtddd86-d4f35cf45ebc655d92cde8abb5c9a1c2822a08ba.tar.gz
formatting
Diffstat (limited to 'labb5/src/boggleplay.cpp')
-rwxr-xr-xlabb5/src/boggleplay.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/labb5/src/boggleplay.cpp b/labb5/src/boggleplay.cpp
index 8219928..2b9b4b1 100755
--- a/labb5/src/boggleplay.cpp
+++ b/labb5/src/boggleplay.cpp
@@ -55,10 +55,14 @@ void playOneGame(Boggle& boggle) {
clearConsole();
cout << endl; // this is later replaced by the response to the prev word
- if (boggle.debug_mode) cout << endl; // debug mode means two prints per guess
+ if (boggle.debug_mode) {
+ cout << endl; // debug mode means two prints per guess
+ }
string user_input;
while (true) {
- if (boggle.debug_mode) cout << boggle.words_to_string(words_left) << endl << endl;
+ if (boggle.debug_mode) {
+ cout << boggle.words_to_string(words_left) << endl << endl;
+ }
cout << "It's your turn!" << endl;
print_user_status(boggle);
cout << "Type a word (or press Enter to end your turn) ";