Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Diff: Tetromino/Tetromino.h
- Revision:
- 4:aa433f9865a6
- Child:
- 5:3efbdcb3efaf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Tetromino/Tetromino.h Tue Mar 12 20:03:31 2019 +0000 @@ -0,0 +1,15 @@ +#include "Block.h" + +class Tetromino { + Tetromino translated(int dx, int dy); +public: + enum Type { + I, O, T, J, L, S, Z + }; + Tetrimino(); + Tetrimino(Type type); + Tetromino(Block a, Block b, Block c, Block d); + Block[] blocks; + Tetromino movedLeft(); + Tetromino movedRight(); +}; \ No newline at end of file