Re: Java Battleship Program
Which part of this is giving you trouble? What do you have so far? What exactly are you stuck on?
Re: Java Battleship Program
Ive got 3 classes but I'm struggling to even start this off! I need a concept of what kind of implementation I would need to construct the 2d array but im having difficulties understanding how to do this.
Re: Java Battleship Program
Start off with a single class that simply displays a 2D grid of booleans. True means they're filled, false means they aren't. From there, you can add ships that take up specific coordinates, then from there you can get into user interaction and placement.
Breaking it up into individual steps also makes it easier for us to help you. If you get stuck displaying the grid, put together an SSCCE that demonstrates only that part, and we'll go from there.
Re: Java Battleship Program
I really need someone to do this for me! As I know I cant do this on my own! At-least if someone starts it off with the right methods and classes and I will finish it off!
Re: Java Battleship Program
That isn't how this works. We aren't a codemill or a homework service. We'll be happy to help you, but you have to show some initiative first. Up to you.
Re: Java Battleship Program
zizou001 is banned for 1 month for misbehaving. See http://www.java-forums.org/new-java/...p-program.html
db
THREAD CLOSED