samtay / tetris

A terminal interface for Tetris
Other
871 stars 40 forks source link

Command Line Parameters Error Messages #30

Closed MarkowEduard closed 9 months ago

MarkowEduard commented 9 months ago

A great game and a great implementation. I'm very happy about that, thanks a lot! The program works, but I have some minor issues with command line parameters. --level is honoured. --ascii-only and either --no-preview or --preview-chars "xx" cannot be used together and result in "Invalid option". Why?

samtay commented 9 months ago

The --ascii-only option is a shorthand for --preview-chars []. So, it is incompatible with other --preview-chars options or setting --no-preview.

MarkowEduard commented 9 months ago

Fair enough, thanks! It may be helpful if the error messages or the documentation points that out ;-)

I observed that the three pieces J, L, and T are rotated counter clockwise while the two pieces Z and 2 are rotated clockwise. Is there are reason to not rotate all pieces in the same direction?