From 9d5d006302108c07bc3002a1e3f553607f58711b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 29 Nov 2020 03:28:11 +0100 Subject: check if tied --- labb5/src/boggleplay.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'labb5/src') diff --git a/labb5/src/boggleplay.cpp b/labb5/src/boggleplay.cpp index 21b3172..3bb1134 100755 --- a/labb5/src/boggleplay.cpp +++ b/labb5/src/boggleplay.cpp @@ -91,6 +91,8 @@ void playOneGame(Boggle& boggle) { cout << endl; if (boggle.get_computer_score() > boggle.get_user_score()) { cout << "Ha ha ha, I destroyed you. Better luck next time, puny human!" << endl; + } else if (boggle.get_computer_score() == boggle.get_user_score()) { + cout << "Close one!" << endl; } else { cout << "WOW, you defeated me! Congratulations!" << endl; } -- cgit v1.2.1