Create new_brick.c

This commit is contained in:
Jason Bou-Samra
2024-07-20 18:04:40 +10:00
committed by GitHub
parent 921ff703da
commit f8be675cb1
+8
View File
@@ -0,0 +1,8 @@
// generate random 3 tile bricks for current and preview
new_brick {
for (i=0; i<3; i++) {
tile_current[i] = randombytes_uniform(5)+1; // current piece
tile_next[i] = randombytes_uniform(5)+1; // next piece
}
return 0;
}