From 69d03899729ebeaae531675ef770146eb1c0c34a Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:54:39 +1000 Subject: [PATCH] Update new_col.c --- src/new_col.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/new_col.c b/src/new_col.c index d7d6d17..2b2f7d9 100644 --- a/src/new_col.c +++ b/src/new_col.c @@ -38,3 +38,14 @@ int new_brick () { } return 0; } + +// rotate (cycle) tiles in brick by 1 +int rotate_col (void) +{ + int temp; + temp = tile_current[0]; + tile_current[0] = tile_current[1]; + tile_current[1] = tile_current[2]; + tile_current[2] = temp; + return 0; +}