tinytetris icon indicating copy to clipboard operation
tinytetris copied to clipboard

80x23 terminal tetris!

Results 28 tinytetris issues
Sort by recently updated
recently updated
newest added

Comentario en el código del tetris

…had a return type of int but no return value so i changed their return types to void

don‘t have return value,or change the return type as void

Modified the original int function that had no return value to a void type.

It seems that when calling new_piece() a new piece may be created where there is already a piece.

replace build cmd `CXX='g++ -std=c++11' make all` with `make all`

``` void remove_line() { for (int row = y; row 0; i--) { memcpy(&board[i + 1][0], &board[i][0], 40); } memset(&board[0][0], 0, 10); // **# I feel like it should be...

One significant optimization could be improving the remove_line() function. Currently, the function uses memcpy and memset, which could be improved for clarity and performance: Optimized Row Removal: Instead of using...