Setting up a Java game called paddleship, same as battleship and having trouble setting the coordinates for row and column using if then statements. Definitely would appreciate it.
How do you set coordinates on a 5x5 grid for a Java program called paddleship?
Instead of using a 2D array, create a JTable object and implement the cell renderer to make your job easier.
Reply:i'm not really sure what your trying to do, some sample code would help. But my opnion on how to do this is a 5x5 2D array. This makes the grid easy to create and change.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment