Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanaStudy/Java-Study
/ ranRect
Method
ranRect
8. Demo/Java/src/main/LeetCode/Tetris/Main.java:93–95 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
91
}
92
/*绘制下落方格形状*/
93
public
void
ranRect() {
94
rect = allRect[(
int
) (Math.random() * 19)];
// 随机生成方块类型(共7种,19个形状)
95
}
96
/*游戏开始函数*/
97
public
void
start() {
98
x = 0;
Callers
1
go
Method · 0.95
Calls
1
random
Method · 0.45
Tested by
no test coverage detected