Skip to content
← Back to Community
Tetris help
Profile icon
ChimaNwosu1

So I am trying to make the tetris game and I pretty much got the gist of everything but there is one problem: When the tetromino block gets close the bottom the block gets a little funky and starts stacking in a way that is unusual. The comments in the code explain the way the code works. I think its the way the compiler is instead of an error in the code. Let me know what you guys think and pls tell me if there is a way to fix this.

Thanks!

Voters
Profile icon
KnowledgeCat247
Profile icon
ChimaNwosu1
Comments
hotnewtop
Profile icon
DynamicSquid

It's almost never the compiler.

On line 48:

cout << "\033[0;32m" << "■" << ' ';

You might want to remove the space after the block

Profile icon
DynamicSquid

It's almost never the compiler.

On line 48:

cout << "\033[0;32m" << "■" << ' ';

You might want to remove the space after the block

Profile icon
ChimaNwosu1

@DynamicSquid Thx, It works for the horizontal spacing but there is still a space between the blocks vertically and when it gets at or near the bottom it still spaces pretty weird.