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
Step: 1
public void run thistetromino thisCONTROLLERgetNextTetromino while this...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started