package chessGame;

public class Main {

	/**
	 * 
	 * @param args
	 */
	public void main(String[] args) {
		// TODO - implement Main.main
		throw new UnsupportedOperationException();
	}

}
@@ -12,16 +12,37 @@
 ssGame;%0D
+%0Aimport java.util.*;%0D
 %0A%0D%0Apubli
@@ -64,40 +64,8 @@
 %0A%0D%0A%09
-/**%0D%0A%09 * %0D%0A%09 * @param args%0D%0A%09 */
 %0D%0A%09p
@@ -104,83 +104,1247 @@
 %0D%0A%09%09
-// TODO - implement Main.main%0D%0A%09%09throw new UnsupportedOperationException();
+Scanner in=new Scanner(System.in);%0D%0A%09%09ChessMonitoringSystem chessMonitoringSystem=new ChessMonitoringSystem();%0D%0A%09%09%0D%0A%09%09int numOfPlayer=2;%0D%0A%09%09ChessPlayer%5B%5D players=new ChessPlayer%5BnumOfPlayer%5D;%0D%0A%09%09for (int i=0;i%3CnumOfPlayer;i++)%7B%0D%0A%09%09%09System.out.print(%22Player %22+i+1+%22 name: %22);%0D%0A%09%09%09String pName=in.nextLine();%0D%0A%09%09%09ChessPlayer player=new ChessPlayer(pName,i); //constructor : ChessPlayer(String playerName, int playerNumber)%0D%0A%09%09%09players%5Bi%5D=player;%0D%0A%09%09%7D%0D%0A%09%09ChessMonitoringSystem.getInstance().initializeChessBoard();%0D%0A%09%09ChessMonitoringSystem.getInstance().initializeChessPieces();%0D%0A%09%09ChessMonitoringSystem.getInstance().showAllChessPiecesPosition();%0D%0A%09%09int j=0;%0D%0A%09%09do%7B%0D%0A%09%09%09System.out.println(%22ChessType: (K-King, Q-Queen, R-Rook, N-Knight, B-Bishop, P-Pawn)%22);%0D%0A%09%09%09System.out.println(%22Please enter action: e.g. P11, N76%22);%0D%0A%09%09%09String move=in.nextLine();%0D%0A%09%09%09ChessMonitoringSystem.getInstance().moveChessPieces(player%5Bj%5D,move);%0D%0A%09%09%09if (j==0)%0D%0A%09%09%09%09j++;%0D%0A%09%09%09else%0D%0A%09%09%09%09j--;%0D%0A%09%09%7Dwhile(!ChessMonitoringSystem.getInstance().checkGameResult());   //boolean checkGameResult(): one player win/ draw-%3Ereturn true%0D%0A%09%09ChessMonitoringSystem.getInstance().getGameResult();  //void getGameResult(): println(%22Player 1/2 Win%22 / %22Draw%22)%0D%0A%09%09%0D%0A%09%09in.close();%0D%0A%09%09%0D%0A%09%09
 %0D%0A%09%7D

Update Main.java