Hi guys so I\'m having a little trouble implementing a battleship game in java t
ID: 3568928 • Letter: H
Question
Hi guys so I'm having a little trouble implementing a battleship game in java that uses these two classes and follows this description any help would be appreciated thanks!
Guidelines-
Here is sample output-
Driver that CAN'T be changed:
Spot Class That CAN'T be changed!:
Thanks for any help let me know if you guys need anything else!
Explanation / Answer
#include #include #include #include #include using namespace std; const int GRIDSIZE = 10; enum direction {EXPAND_ROW, EXPAND_COL}; // Function Prototypes int GetPlayers(); void SetComputerBoats(char [GRIDSIZE][GRIDSIZE]); void PrintBoard(char [GRIDSIZE][GRIDSIZE]); string GetRank(int); int PlaySingleMode(char [GRIDSIZE][GRIDSIZE]); void SetParticularBoat(char [GRIDSIZE][GRIDSIZE], int, char); void main() { //Just For Fun!> system("color 02"); int numOfPlayers, moves=99; //char player1Boats[GRIDSIZE][GRIDSIZE]; char player2Boats[GRIDSIZE][GRIDSIZE]; // Print Title, seed RNG and get # of players coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.