Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. void clearRow(int row) {
  2. for (int i = 0; i < COLUMNS; i++) {
  3. root.getChildren().remove(pseudoblock[i][row]);
  4. //pseudoblock[i][row] = null;
  5. //pseudoblock[i][row].setFill(Color.HOTPINK);
  6. }
  7.  
  8. root.getChildren().remove(pseudoblock[i][row]);
  9.  
  10. for (int c = 0; c < ROWS; c++){
  11. if (isFullRow(c)) {
  12. clearRow(c);
  13.  
  14. private boolean isFullRow(int row) {
  15. for (int i = 0; i < COLUMNS; i++) {
  16. if (pseudoblock[i][row] == null) {
  17. return false;
  18. }
  19. }
  20. return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement