OK. So this is my first attempt at writing a battleship style game in C++. Ive got the int main() intro section to run smoothly on its own but int game() is a mess so far and is riddled with errors. Im in need of some guidance here. The goal is to get the computers ships all defined and placed at random coordinates each time the program runs. Afterwards ill integrate the players ships and let the player choose where to place them at the start of the game. Go easy on me, im unclear on how to use the rand() and srand() functions, let alone randomize x,y coordinates. I would really apreciate any guidance here guys, or atleast some resources to help me understand how to structure this game of mine.
Thanks !
Thanks !