I’m just wondering if it’s possible to walk through the battleship game with a TA or even someone else who feels really confident about it. I’m struggling to really internalize what exactly is going on in this problem and would love some help.
If a walkthrough isn’t possible, would anyone be able to answer a whole bunch of questions that I have in DMs?
Hi Laurette, we would be happy to answer your questions. Can you please post them here on this thread so other students can also see them?
@ommish Thanks for responding! So I went thru it a few more times and some things did become more clear so that’s good, but here are some outstanding questions:
What is the benefit of
system("clear") ? I realize that it’s supposed to force the display to the top of the console, but it does look a little awkward in practice.
Why does the
play_turn method kick the user out of the game entirely if they double-click enter? Is there a way to prevent that from happening?
When is the
prompt method in the player class ever used? Was this an oversight or am I missing something there?
(definitely the most pressing) Do we have solutions available for the bonus features? I’m feeling pretty lost on where to start with those and it always helps me to move backwards and repeat until I totally get it. I’d really love some help with that.
Thanks so much!
@m1010j Thanks for your quick response! That’s definitely a relief, thought I was really behind in terms of the bonus questions.