I was wanting to find out exactly how I could randomize the placing of the ships for a one player battleship game. Im writing it in VB 6 but cannot seem to figure out how (or if its possible) to randomize the placing of the ships when the game is started by the user. Anyone who is able to help me on this I really appreciate it . :cheesy:

Sorry, don't know VB, surely you can create 2 random numbers for the x and y coordinates?

not sure, nut i'd love to try the game when its all done though :cheesy:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.