Search:

Type: Posts; User: dalizardking427

Search: Search took 0.10 seconds.

  1. Re: Alternate turns using Polymorphism and abstract classes

    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.
  2. Re: Alternate turns using Polymorphism and abstract classes

    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...
  3. Re: Alternate turns using Polymorphism and abstract classes

    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.
  4. Alternate turns using Polymorphism and abstract classes

    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...
Results 1 to 4 of 4