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
Tetromino/Tetromino.h
- Committer:
- el17ajf
- Date:
- 2019-03-13
- Revision:
- 5:3efbdcb3efaf
- Parent:
- 4:aa433f9865a6
- Child:
- 6:a54df561f442
File content as of revision 5:3efbdcb3efaf:
#include "Block.h" class Tetromino { private: Tetromino translated(int dx, int dy); public: enum Type { I, O, T, J, L, S, Z }; static Tetromino GetTetriminoOfType(Type type); static Tetromino getTetrominoFromString(const char * str); Tetromino(Block a, Block b, Block c, Block d); Block blocks[]; Tetromino movedLeft(); Tetromino movedRight(); };