package Minesweeper;

import exception.InputInvalidException;
import exception.PlacementFailedException;
import game.AbstractGame;
import game.Coordinate;
import game.PieceType;

public class Minesweeper extends AbstractGame{

	public Minesweeper() {
		super(new MinesweeperBoard());
	}

	@Override
	public void next() {
		Coordinate input;
		
		try {
			input = getConsole().getSquareCoordinates(this);
		} catch (InputInvalidException e) {
			errorMessage(e.toString());
			return;
		}
		System.out.println();

		try {
			getBoard().attemptPlace(PieceType.X, input);
		} catch (PlacementFailedException e) {
			errorMessage(e.toString());
			return;
		}

		printBoard();
		
	}

	@Override
	public void check() {
		// TODO Auto-generated method stub
		
	}

}

@@ -157,32 +157,8 @@
 te;%0D
-%0Aimport game.PieceType;%0D
 %0A%0D%0Ap
@@ -260,16 +260,17 @@
 erBoard(
+5
 ));%0D%0A%09%7D%0D
@@ -549,19 +549,29 @@
 ace(
-PieceType.X
+MinesweeperBoard.OPEN
 , in

change constructor to match board