package Minesweeper;

import game.CharBoard;
import game.Coordinate;
import game.PieceType;

public class MinesweeperBoard extends CharBoard {

	public MinesweeperBoard() {
		super(5);
		// TODO Auto-generated constructor stub
	}

	@Override
	public boolean canPlace(PieceType piece, Coordinate c) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public char gameEnd() {
		// TODO Auto-generated method stub
		return 0;
	}

}

@@ -145,16 +145,544 @@
 rd %7B%0D%0A%0D%0A
+%09/** This character represents a bomb */%0D%0A%09public static final PieceType BOMB = PieceType.X;%0D%0A%09/** This character represents a revealed square */%0D%0A%09public static final PieceType OPEN = PieceType.O;%0D%0A%0D%0A%09/** This 2d array shows the user the number of bombs around each square */%0D%0A%09private int%5B%5D%5B%5D visibleBoard;%0D%0A%09/**%0D%0A%09 * This board keeps track of the size of the board because the value is used%0D%0A%09 * often%0D%0A%09 */%0D%0A%09private int size;%0D%0A%0D%0A%09// The previous board tracks the revealed squares and the squares with bombs%0D%0A%09// on them%0D%0A%0D%0A
 %09public 
@@ -698,16 +698,24 @@
 erBoard(
+int size
 ) %7B%0D%0A%09%09s
@@ -723,60 +723,950 @@
 per(
-5);%0D%0A%09%09// TODO Auto-generated constructor stub%0D%0A%09%7D%0D%0A
+size);%0D%0A%09%09visibleBoard = new int%5Bsize%5D%5Bsize%5D;%0D%0A%09%09this.size = size;%0D%0A%09%09generateVisibleBoard();%0D%0A%09%7D%0D%0A%0D%0A%09public void generateVisibleBoard() %7B%0D%0A%09%09for (int j = 0; j %3C size; j++) %7B%0D%0A%09%09%09for (int i = 0; i %3C size; i++) %7B%0D%0A%0D%0A%09%09%09%09if (getBoard()%5Bj%5D%5Bi%5D == BOMB.getChar())%0D%0A%09%09%09%09%09visibleBoard%5Bj%5D%5Bi%5D = 0;%0D%0A%09%09%09%09else%0D%0A%09%09%09%09%09visibleBoard%5Bj%5D%5Bi%5D = numOfSurroundingBombs(j, i);%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09public int numOfSurroundingBombs(int y, int x) %7B%0D%0A%09%09// TODO%0D%0A%09%09return 0;%0D%0A%09%7D%0D%0A%09// (1, 1)%0D%0A%09// (1, 0)%0D%0A%09// (1, -1)%0D%0A%09//%0D%0A%09// (0, 1)%0D%0A%09// (0, -1)%0D%0A%09// %0D%0A%09// (-1, -1)%0D%0A%09// (-1, 0)%0D%0A%09// (-1, 1)%0D%0A%0D%0A%0D%0A%09/**%0D%0A%09 * This method verifies that a piece can be placed on this square. For%0D%0A%09 * Minesweeper, this involves checking if the square had been reveled%0D%0A%09 * before.%0D%0A%09 * %0D%0A%09 * @param piece%0D%0A%09 *            the piece that will be checked%0D%0A%09 * @param c%0D%0A%09 *            the coordinates the piece will be checked on%0D%0A%09 * @return if the piece can be placed on the coordinate%0D%0A%09 */
 %0D%0A%09@
@@ -1740,58 +1740,25 @@
 %0D%0A%09%09
-// TODO Auto-generated method stub%0D%0A%09%09return false
+return isEmpty(c)
 ;%0D%0A%09

change constructor