Question: How would the right squares on the board be painted the color of the tetromino and the tetromino gets hidden? Java Language and located in
How would the right squares on the board be painted the color of the tetromino and the tetromino gets hidden?
Java Language and located in the gray-out comment section in the image.
/** * Starts gameplay and is responsible for keeping the game going (INCOMPLETE) */ 1 usage public void run() { } this.tetronimo = this.CONTROLLER.getNextTetromino(); while( this.CONTROLLER.tetronimoLanded(this.tetronimo ) ) { } this.tetronimo.setLocation(this.tetronimo.getXLocation (), il: this.tetronimo.getYLocation () + Tetronimo.SIZE ); Utilities.sleep ( : 500); /* * This next line is a placeholder for now, you need to change this code so when a piece lands * the right squares on the board are painted the color of the tetronimo and the tetronimo itself gets hidden */ this.tetronimo = null;
Step by Step Solution
3.39 Rating (168 Votes )
There are 3 Steps involved in it
public void run thistetromino thisCONTROLLERgetNextTetromino while this... View full answer
Get step-by-step solutions from verified subject matter experts
