Tetris Source/TetrisInterface.cpp
void TetrisInterface::clearLines(){
	for (int i = 0; blockOverlay.linesPresent(); i++){
		blockOverlay.clearLowestLine();
		addToScore((i*i + 1)*BASE_LINE_CLEAR_SCORE);
		addToLinesCleared(1);
	}
}
//Uses a for-loop to clear the lines in the BlockOverlay instance until no more lines are present

Uses a for-loop to clear the lines in the BlockOverlay instance until no more lines are present
Uses a for - loop to clear the lines in the BlockOverlay instance until no more lines are present
void TetrisInterface::clearLines(){
	for (int i = 0; blockOverlay.linesPresent(); i++){
		blockOverlay.clearLowestLine();
		addToScore((i*i + 1)*BASE_LINE_CLEAR_SCORE);
		addToLinesCleared(1);
	}
}
void TetrisInterface :: clearLines ( ) { for ( int i = 0 ; blockOverlay . linesPresent ( ) ; i ++ ) { blockOverlay . clearLowestLine ( ) ; addToScore ( ( i * i + 1 ) * BASE_LINE_CLEAR_SCORE ) ; addToLinesCleared ( 1 ) ; } }
Uses a for-loop to clear the lines in the BlockOverlay instance until no more lines are present
Uses a for - loop to clear the lines in the BlockOverlay instance until no more lines are present