From fc2f467ca090b4663670bf463d043375f3351bc3 Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:35:42 +1000 Subject: [PATCH] Create rotate_column.c --- src/rotate_column.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/rotate_column.c diff --git a/src/rotate_column.c b/src/rotate_column.c new file mode 100644 index 0000000..43f6b72 --- /dev/null +++ b/src/rotate_column.c @@ -0,0 +1,9 @@ +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; +}