diff options
Diffstat (limited to 'src/piece.cpp')
-rw-r--r-- | src/piece.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/piece.cpp b/src/piece.cpp index 51e8dc7..67755f0 100644 --- a/src/piece.cpp +++ b/src/piece.cpp @@ -69,3 +69,9 @@ void Piece::rotate(){ void Piece::advance(){ position_.y++; } +void Piece::move_left(){ + position_.x--; +} +void Piece::move_right(){ + position_.x++; +} |