package chessGame;

public abstract class ChessPiece {

	private String position;
	private ChessPlayer player;

	public ChessPlayer getPlayer() {
		return this.player;
	}
	
	public abstract boolean moveIsAvailable(String move);
	
	public String getPosition() {
		return this.position;
	}

	public void updatePosition(String move){
		if( moveIsAvailable(move) == true){
			this.position = move;
		}
		
	}

}

@@ -110,18 +110,134 @@
 layer;%0D%0A
+%09%0D%0A%09public ChessPiece(ChessPlayer player, String position)%7B%0D%0A%09%09this.player=player;%0D%0A%09%09this.position=position;%0D%0A%09%7D%0D%0A%09
 %0D%0A
-
 %09public 
@@ -413,18 +413,19 @@
 n;%0D%0A%09%7D%0D%0A
+%09
 %0D%0A
-
 %09public 
@@ -463,48 +463,8 @@
 )%7B%0D%0A
-%09%09if( moveIsAvailable(move) == true)%7B%0D%0A%09
 %09%09th
@@ -488,21 +488,13 @@
 e;%0D%0A
-%09%09%7D%0D%0A%09%09%0D%0A
 %09%7D%0D%0A
+%09
 %0D%0A%7D%0D

Update ChessPiece.java