- Jul 20, 2004
- 706
- 1
- 81
This is the code for the Board class; it's where I'm having my main problem now. If you have any questions about what a certain line is supposed to be doing, please ask. I'm having a problem where each cell on the board is doing one of the following:
1) Not instantiating to the right type of object (empty or mine)
2) Not giving the right return when isMine() method is called
3) Having trouble putting Mines and Empty's in an array of Space (interface of Mine and Empty)
The code is attached. I put all of them just in case they were needed, but my main problem is only with the Board class, and the problem area is marked off with comments.
Thanks for any help!
1) Not instantiating to the right type of object (empty or mine)
2) Not giving the right return when isMine() method is called
3) Having trouble putting Mines and Empty's in an array of Space (interface of Mine and Empty)
The code is attached. I put all of them just in case they were needed, but my main problem is only with the Board class, and the problem area is marked off with comments.
Thanks for any help!
