Code (PHP) pasted on 2019-01-31, 22:14 Raw Source
- <?php
- function getTetrominos(int $count): string {
- $bag = [];
- $tetrominoOrder = "";
- for ($i = 0; $i < 50; ++$i) {
- $bag = initTetrominoBag();
- }
- }
- return $tetrominoOrder;
- }
- $bag = ['I', 'O', 'L', 'J', 'T', 'S', 'Z'];
- return $bag;
- }
- echo getTetrominos(50);