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; +}