src/main/java/com/webcheckers/model/Row.java
/**
     * Fills a row with a given piece color (only on the black squares)
     * @param pieceColor the piece color to fill the row with
     */
Fills a row with a given piece color (only on the black squares)
@param pieceColor the piece color to fill the row with
Fills a row with a given piece color ( only on the black squares ) @param pieceColor the piece color to fill the row with
public void fillRow(PieceColor pieceColor) {
        for(int i = 0; i < 8; i++) {
            if(index%2 == 0) {
                if(i%2 != 0) {
                    Piece piece = new Piece(pieceColor, Piece.PieceType.SINGLE);
                    spaces.get(i).setPiece(piece);
                }
            } else {
                if(i%2 == 0) {
                    Piece piece = new Piece(pieceColor, Piece.PieceType.SINGLE);
                    spaces.get(i).setPiece(piece);
                }
            }
        }
    }
public void fillRow ( PieceColor pieceColor ) { for ( int i = 0 ; i < 8 ; i ++ ) { if ( index % 2 == 0 ) { if ( i % 2 != 0 ) { Piece piece = new Piece ( pieceColor , Piece . PieceType . SINGLE ) ; spaces . get ( i ) . setPiece ( piece ) ; } } else { if ( i % 2 == 0 ) { Piece piece = new Piece ( pieceColor , Piece . PieceType . SINGLE ) ; spaces . get ( i ) . setPiece ( piece ) ; } } } }
Fills a row with a given piece color (only on the black squares)
 @param pieceColor the piece color to fill the row with
Fills a row with a given piece color ( only on the black squares ) @param pieceColor the piece color to fill the row with