package reversi.models;

import base.models.Board;

public class ReversiBoard extends Board<ReversiPiece>{

	//TODO: Implement board
	
	//TODO: Create function that shows the board in ASCII
}

@@ -29,25 +29,108 @@
 ort 
-base.models.Board
+java.util.Map;%0A%0Aimport base.models.Board;%0Aimport base.models.BoardPiece;%0Aimport base.models.Position
 ;%0A%0Ap
@@ -270,6 +270,959 @@
 CII%0A
-%7D
+%09%0A%09private static final String%5B%5D columnAlpha = %7B%22a%22,%22b%22,%22c%22,%22d%22,%22e%22,%22f%22,%22g%22,%22h%22%7D;%0A%09%0A%09public String DrawBoard(ReversiBoard board)%0A%09%7B%0A%09%09Map%3CPosition, BoardPiece%3CReversiPiece%3E%3E boardPieces = board.getBoardElements();%0A%09%09%0A%09%09StringBuilder builder = new StringBuilder();%0A%0A%09%09for (int c = 0; c %3C 8; c++) %7B%0A%0A%09%09%09String currentColumn = columnAlpha%5Bc%5D;%0A%09%09%09%0A%09%09%09builder.append(c);%0A%0A%09%09%09for (int r = 0; r %3C 8; r++) %7B%0A%09%09%09%09%0A%09%09%09%09builder.append(%22%7C%22);%0A%0A%09%09%09%09Integer currentRow = r;%0A%0A%09%09%09%09Position position = new Position(currentColumn, currentRow);%0A%0A%09%09%09%09BoardPiece%3CReversiPiece%3E boardPiece = boardPieces.get(position);%0A%09%09%09%09%0A%09%09%09%09String representation = this.DrawElement(boardPiece);%0A%09%09%09%09%0A%09%09%09%09builder.append(representation);%0A%09%09%09%7D%0A%0A%09%09%7D%0A%09%09return board;%0A%0A%09%7D%0A%09%09%0A%09public String DrawElement(BoardPiece%3CReversiPiece%3E piece)%0A%09%7B%0A%09%09String result = %22%22;%0A%09%09%0A%09%09ReversiPiece reversiPiece = piece.getElement();%0A%09%09%0A%09%09if(reversiPiece == null)%0A%09%09%09result = %22_%22;%0A%09%09else%0A%09%09%09%0A%09%09%0A%09%09return result;%0A%09%7D%0A%09%0A%7D%0A
 %0A

Work on DrawBoard and DrawElement