Live data from Hacker News

Show HN: Lovetris – Tetris which always gives you the best piece

unrealwill.github.io

101–110 of 129 posts

Re: Show HN: Lovetris – Tetris which always gives you the best piece

#103
As other comments have noted, it's easy to get this implementation into a state where it throws "S" pieces at you over and over.

It would be better if it used a variant of the Random Generator algorithm, which guarantees an equal distribution of pieces.

https://tetris.fandom.com/wiki/Random_Generator

Lovetris should choose, from the remaining pieces in the current bag, the one that it thinks is "best".

Re: Show HN: Lovetris – Tetris which always gives you the best piece

#106
post #69

Earlier quoted context omitted.

That is fascinating! In particular, base2048 was designed after twitter adjusted the tweet limit to 280 characters, but started counting “heavy” codepoints as double, making the previously used base65536 less efficient in the context of a tweet. See https://github.com/qntm/base2048#readme

I'd never heard of this either. It really is interesting! I can't other articles on it other than that readme. Does anyone else know where I can learn more about it? Someone needs to make a Wikipedia page!

I think the reason is just that it isn't widely used. It's a very niche use-case, anyway. Even link-shorteners don't particularly benefit from something like this, and for all cases where the actual amount of data is concerned, simple base64 is more efficient.

But yeah, making a wikipedia entry and adding it to this list (https://en.wikipedia.org/wiki/Binary-to-text_encoding) could spread it a little further.

Re: Show HN: Lovetris – Tetris which always gives you the best piece

#108
I like it. You can get it to loop around a sequence, probably for ever:

ଵටໂ໒௨ටಭݹ௧ଆඤݹ௨ඖಸݹளஶໃݑɷටॡݹறටໂວ௨ටໂٽ௨യժݹ௨ඥషݹઋقາח௨ඦІͻϢටƘঅணএဒݱРڠසމଯڠԮɥЬږ1

Edit: I wonder if you can do that with Hatetris also, if the difference is just flipping a sign as the author says.

Re: Show HN: Lovetris – Tetris which always gives you the best piece

#109
post #12

Earlier quoted context omitted.

Tetris(Noun) The act of clearing four lines at once (the maximum possible) in Tetris. Somehow went my entire life not knowing that meaning of the word!

It depends on the implementation of course, but clearing 4 lines at once usually brings a huge amount of points. For example, NES version at the first "level" (slowest speed): 1 line = 40, 2 lines = 100, 3 lines = 300, 4 lines = 1200. It also increases the speed every 10 lines, so you want to plan accordingly for maximum score. You can get above that first level with either 400 points or 3600. If you have some time t…

In modern ("guideline") tetris T-spins multiline clears tend to actually be the most point-garnering moves. It's a bit weird that the game named tetris went that way but oh well.

Re: Show HN: Lovetris – Tetris which always gives you the best piece

#110
In case anyone was wondering you can get it to infinitely spawn I pieces by just getting any kind of 3-deep 1-wide well anywhere, and then just keeping that well active, and it'll always give you I pieces:

ϢටलݹઊƗȤڥ௨೯ಽݹॴਉПݹ௨ඥΒधԥටеݹఒௐໃޅݫටДݹ४Οໃࡑ௧پഋݹরΟະࠀ௨ೲໃԔԥඦܯ൫ஜуໄஈமΟະࡊѻ೯लܭЕڠฅɕসඤʈཧࢶكɑݚԥఫІݹஶɈໂɝЩටܬݹ௨ඩໃܭݹقฅ൫௨ටໃݹ௨൜ೡɕরටɓݷಏ୮ฅ൫వට౻ݷԥಀඤݪɷ੬ഫןЬكƬמ௨ඍȣݹ௨ටลஈಏඤɱџбඩແࡁ௨ඨʑעமҼใɕࢳচܘݹ௨ටd

Post reply on HN