MCPcopy Create free account
hub / github.com/TanaStudy/Java-Study / reflesh

Method reflesh

8. Demo/Java/src/main/LeetCode/Tetris/Main.java:177–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176 /* 刷新移除row行方块后的游戏主面板区域*/
177 public void reflesh() {
178 for (int i = 1; i < 25; i++) {
179 for (int j = 1; j < 11; j++) {
180 if (data[i][j] == 1) {//有方块的地方把方块设置为绿色
181 grids[i][j].setBackground(Color.GREEN);
182 } else {//无方块的地方把方块设置为白色
183 grids[i][j].setBackground(Color.WHITE);
184 }
185 }
186 }
187 }
188 /*方块掉落一层*/
189 public void fall(int m, int n) {
190 if (m > 0)// 方块下落一层时

Callers 1

removeRowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected