Any ideas on how I can fix it?
--- Update ---
I want to be able to use only one board but take turns with the Human and Computer players.
Type: Posts; User: dalizardking427
Any ideas on how I can fix it?
--- Update ---
I want to be able to use only one board but take turns with the Human and Computer players.
Well, not, but there is an instance of the Human class and an instance of the Computer class, then I am alternating by putting it in the instance of Game called battle. I can not instantiate Game...
This is where I am having trouble. The board is in the Game class. Right now I have a public variable - public char[][] board, that Human and Computer can see.
I am working on a project building a battleship game. One of the requirements is that we create an abstract class called Game, with an abstract method called play(), then 2 subclasses for each...