So my final is due today, it's to create a 2-player game of battleship, and everything was working perfectly except that it doesn't display the hits or misses on the board. I've tried everything and can't seem to get it to work, if someone could take a look at this I'd really appreciate it.
I believe that it's a logic error. It lets you play through the game and will let you know if you got a hit, but it doesn't display it on the board. working on uploading it.
Only two things I can see wrong with that is you have if(i==10) when i can never equal 10. And you are using postfix increments rather than prefix. Also just noticed on the first bit of code you put, line 5 and 12 should use = not ==.