From f8be675cb1c7e6998e88bed7720109a249cda5ba Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Sat, 20 Jul 2024 18:04:40 +1000 Subject: [PATCH] Create new_brick.c --- src/new_brick.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/new_brick.c diff --git a/src/new_brick.c b/src/new_brick.c new file mode 100644 index 0000000..8c71432 --- /dev/null +++ b/src/new_brick.c @@ -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; +}