tinytetris icon indicating copy to clipboard operation
tinytetris copied to clipboard

Return score

Open markjansnl opened this issue 5 years ago • 2 comments

Return the score after execution.

markjansnl avatar Apr 03 '19 15:04 markjansnl

Why return it? Who's going to look at the return value?

taylorconor avatar Apr 04 '19 18:04 taylorconor

Hi Taylor,

Seems a nice feature to me, when calling it from a bash script. For example mail the score to friends or put it on twitter, without having to do this in C++.

By the way, saw that 255 is the ultimate high score because it is an int. I haven’t played enough to overflow this... yet 😋

Thanks for sharing your game and show how to accomplish this in so few lines of code.

With kind regards, Mark Jans

Op 4 apr. 2019 om 20:43 heeft Conor Taylor [email protected] het volgende geschreven:

Why return it? Who's going to look at the return value?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

markjansnl avatar Apr 04 '19 20:04 markjansnl