News for hackers. Stuff that matters.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by GistNoesis on Saturday May 08, 2021 @12:00AM (#27083716)
After playing Hatetris https://news.ycombinator.com/item?id=27063894 yesterday on HN,

I decided I would rather have the AI on my side so I forked the site and flipped a sign.

If your life feels like Hatetris, Lovetris will bring you comfort.

Enjoy :)

Re:Show HN: Lovetris – Tetris which always gives you the bes... by electroly on Saturday May 08, 2021 @01:36AM (#27084217)
Very nice!

My initial reaction is: it's not giving me the piece I want. It's trying to force you to clear individual lines as soon as it is possible to do so. But in real Tetris, you want to clear four lines at a time to get double score, which may mean withholding a line clear when you could have done one.

Consider this replay: హටເח௨ඞܗТۑටܢݹ௫੬ຽߢ௧ලບঅযلЈǶ

It ends by giving me nothing but S pieces, because it wants me to take the single line clear. It won't stop giving S pieces until I do so. In actuality, any other piece would be preferable; there are available spots for all of them, and I can build up to a Tetris. But with the S piece, my only options are to sacrifice the Tetris for the single line clear, or create a hole in my stack.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by andai on Saturday May 08, 2021 @01:46AM (#27084279)
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!

Re:Show HN: Lovetris – Tetris which always gives you the bes... by input_sh on Saturday May 08, 2021 @03:54AM (#27084927)
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 to kill, highly recommend this and the follow up video: https://www.youtube.com/watch?v=9RaqVGzhQTM

Re:Show HN: Lovetris – Tetris which always gives you the bes... by stormbrew on Saturday May 08, 2021 @03:56PM (#27090157)
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 bes... by tome on Saturday May 08, 2021 @06:32AM (#27085773)
"Tetris" as in "tetrahedron". mind.equals(blown).
Re:Show HN: Lovetris – Tetris which always gives you the bes... by uhl on Saturday May 08, 2021 @06:58AM (#27085933)
More like tetris as in Tetromino: https://en.m.wikipedia.org/wiki/Tetromino
Re:Show HN: Lovetris – Tetris which always gives you the bes... by zwp on Saturday May 08, 2021 @10:06AM (#27087246)
"Tetra" isn't completely unknown in English but perhaps the link is more obvious to Russian-speakers (the original author was Russian)? Is четыре/chetyre a cognate of Greek-derived tetra?

https://translate.google.com/?sl=en&tl=ru&text=four

Re:Show HN: Lovetris – Tetris which always gives you the bes... by BrandoElFollito on Saturday May 08, 2021 @05:33AM (#27085434)
Could someone please explain what the string after "consider this replay" is?

I see a combination of characters loosely looking like some East Asian alphabet, I guess that this is some kind of encoding ?

Re:Show HN: Lovetris – Tetris which always gives you the bes... by dagurp on Saturday May 08, 2021 @05:42AM (#27085488)
To watch a replay you need to click the replay button and paste this string
Re:Show HN: Lovetris – Tetris which always gives you the bes... by amelius on Saturday May 08, 2021 @05:46AM (#27085512)
Is this base64 but with Arabic chars included?
Re:Show HN: Lovetris – Tetris which always gives you the bes... by spoonjim on Saturday May 08, 2021 @06:12AM (#27085662)
Base2048. An encoding optimized for packing maximum data into a Tweet (which supports 280 characters, but with Unicode support).
Re:Show HN: Lovetris – Tetris which always gives you the bes... by uhl on Saturday May 08, 2021 @08:51AM (#27086694)
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

Re:Show HN: Lovetris – Tetris which always gives you the bes... by azhenley on Saturday May 08, 2021 @10:22AM (#27087373)
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!

Re:Show HN: Lovetris – Tetris which always gives you the bes... by uhl on Saturday May 08, 2021 @02:39PM (#27089661)
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 bes... by amelius on Saturday May 08, 2021 @12:17PM (#27088466)
I remember downloading binaries from Usenet using uudecode. Looks like Twitter is the new Usenet.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Okawari on Saturday May 08, 2021 @04:55AM (#27085218)
I tried to see if I could stack a tetris. Made a 3 wide well, the game would give me L pieces to fill in the single line. Which made it pretty easy to stack up. At some point it gave me a single I piece, which I put in the middle of the 3 deep well. I would either get more I pieces or an L piece which I put in the well, the game would proceed to give me I pieces.

ҫටไଈۑටހঅ௧ΧІݶݼق໑অௐRʈঅ௨ఢȵݶԳقฒߢ௨ఢƔݹடٴໃٳɺقຯঐ౬ΟໃƁԈقໄɕலۇȣJலปາஞݫටࠋऐഹටоࡨ௩ѻІԔԥಘϾঀƥقഥಕ௨vІðƐටƚࡨ௨uಸݹறঔໃΥeٯໃҾkقബເवॴຯɛ௨කТ൫ஸڐໃپϢඡಋڝ௨ΣІݞ౻ටࠄঅடڠາɚ௨ౚ༣ݹބقଡɕષقࠄঅटقԀɕ௧uଈݡКʈເŧݸටඨࡖ௨ࡆІܥ౮قଞݸƕقܢઝடٴໃܤƓقฮࡈ௨ඉʑݢ౻ඥСݸ౫ඡಋঅஐٴໃܡవටଥɕஜؿϽߡƗࡕ

Re:Show HN: Lovetris – Tetris which always gives you the bes... by bonestamp2 on Saturday May 08, 2021 @11:26AM (#27087975)
Ya, it should be called Onetris.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by tomgp on Saturday May 08, 2021 @08:58AM (#27086748)
Ha! I just played exactly the same game!
Re:Show HN: Lovetris – Tetris which always gives you the bes... by daniellarusso on Saturday May 08, 2021 @07:12AM (#27086032)
Yeah, what about t-spins, too?

If it could always set me up for amazing t-spin plays, that would be really enjoyable, I think.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Twisell on Saturday May 08, 2021 @02:35AM (#27084520)
Ended up exactly in the same situation. Unfortunately didn't thought about replay which is by the way a really nice feature.

Two bigs tower and a sad perfect spot to fit a L shape at the base of them :D

Re:Show HN: Lovetris – Tetris which always gives you the bes... by nannal on Saturday May 08, 2021 @03:27AM (#27084791)
This occurs because the goal of hatris is to stop you scoring any lines so lovetris wants you to get every line, but doesn't allow for tetris.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by djmips on Saturday May 08, 2021 @04:21AM (#27085054)
I think to make this a fun-ish experience would be to have the screen start filled with mostly garbage and holes and then have the the 'AI' lovingly send you the appropriate pieces to clean up the mess... I tried this by purposely messing the board and then going ahead with the game and I found it quite pleasant. Another idea would be to have it 'normal' until you got in trouble and then it would lovetris you back to health.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by yeahboats on Saturday May 08, 2021 @01:26AM (#27084160)
In a way, I got just as frustrated (well maybe not _as_ frustrated) as playing hatetris, because I couldn't easily make 4 line combos. That is, until I managed to set up endless straight pieces and stack the rest of the board save that one slot.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by IshKebab on Saturday May 08, 2021 @10:34AM (#27087463)
I don't think you need AI to decide the best piece. Or any logic at all. It's just always the long piece. Pretty boring.

Might be more interesting if there were other constraints like it couldn't give you the same piece too often or something.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by carl_dr on Saturday May 08, 2021 @01:26AM (#27084157)
If all you’ve done is flip a sign, it’s a little disingenuous to say “by GistNoesis“.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by indigochill on Saturday May 08, 2021 @01:37AM (#27084233)
This version didn't exist until GistNoesis flipped the sign, so no, it's not.

This gets to a larger philosophy of open source: we should encourage people to fork when they want to iterate on someone else's work, however minor that iteration may be. This is open source working as intended.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @04:34AM (#27085124)
If you take something that took hours to build and (as is claimed) spend 1 minute modifying it, you absolutely have no right to claim it’s “by” you. I think everyone except you agrees on that.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by franciscop on Saturday May 08, 2021 @05:11AM (#27085300)
Well they also changed the name, so this new concept of Lovetris is by the new author, even if the code to make it possible is not. Lots of references to the old work as well, similar distribution (e.g. not paid), etc. If I was the author of Hatetris I'd be happy for this version!
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @05:31AM (#27085421)
> they also changed the name

Is that a serious argument? If you write a techno song, and I take it, turn up the BPM and publish it as “by me”, would it help my case that I also changed the name of the song?

Re:Show HN: Lovetris – Tetris which always gives you the bes... by franciscop on Saturday May 08, 2021 @06:07AM (#27085628)
I'd like to welcome you to the world of Nightcore:

https://www.youtube.com/results?search_query=nightcore

But in more seriousness, a song is normally quite distinguishable from another song than a tetris implementation from another tetris implementation. Conceptually, having a normal tetris vs having a tetris give you the worst solution (hatris) is the same jump as having a normal tetris vs having a tetris give you the best solution (lovetris). IMHO it's not the code itself what makes a "new thing new", it's the concept behind it.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @06:27AM (#27085740)
I completely disagree. I made a hatetris myself (called Lövetris) once, spent a good 20 hours on it. If someone took it, flipped a sign (or even re-skinned it) and published it as “by” them I’d be furious.

Yes, the product would be different, but 99.9% (literally) of the work would still be mine. The hard part is building the app, not changing a parameter. I wouldn’t even call that a “remix”.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by franciscop on Saturday May 08, 2021 @07:23AM (#27086102)
That seems the opposite of open source thinking, which might be why you didn't published it and why you think that way. As an open source author myself I see this as a fair move. Just different opinions :)

"The hard part is building the app, not changing a parameter" that really depends, why didn't you take an open source implementation yourself and built on top of it? Then it wouldn't be "as hard", would it? If you want to go the hard road that's totally fine, but it's not fair to say that because you go that road you deserve something that someone else got easier using pre-existing technology. Also there's literally dozens of famous examples in science and medicine when the hard part is changing a parameter and saving millions of lives.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @10:12AM (#27087293)
Also, I’m not saying it’s a problem to tweak someone’s open source project, I only take issue with presenting it as your own, with such a minimal change.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by frosted-flakes on Saturday May 08, 2021 @11:20AM (#27087924)
If you want attribution, require it in the licence.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @11:46AM (#27088174)
Maybe I’m not being clear. I’m talking about _etiquette_. Not licenses or laws.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @07:35AM (#27086168)
I don’t know if there are open source hatetris available, but in my case it was an assignment so that wasn’t an option.

If i build something from scratch it doesn’t really matter that it “could have been” built on open source. And in any case, it might be perfectly legal and in accordance with the license to do what OP did, I’m just saying it’s bad form. Making a minor tweak doesn’t make it “by you”. It just doesn’t.

And this is not medicine and lovetris doesn’t save any lives, so I’m bot sure it’s relevant.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by thinkingemote on Saturday May 08, 2021 @06:33AM (#27085780)
Did you give an open source license to your project? I think some licenses have better attribution requirements than others.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @07:09AM (#27086011)
I didn’t publish it at all, I’m just thinking hypothetically here!
Re:Show HN: Lovetris – Tetris which always gives you the bes... by thinkingemote on Saturday May 08, 2021 @11:50AM (#27088217)
Good idea! If more thought hypothetically about the consequences of various licenses I think it would be a good thing.

In retrospect some of my projects might have more liberal WTFPL on them where I really don't care if someone else said they did it, but others I would want more recognition and more copy left for their changes. (I think some of my bigger projects side with the copy left and the smaller with the liberal.)

Re:Show HN: Lovetris – Tetris which always gives you the bes... by tobr on Saturday May 08, 2021 @05:07AM (#27085274)
> I think everyone except you agrees on that

As a member of “everyone”, would you please not put words in my mouth.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by zepolen on Saturday May 08, 2021 @09:12AM (#27086831)
Everyone is so touchy.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @05:29AM (#27085410)
”I think”
Re:Show HN: Lovetris – Tetris which always gives you the bes... by LocalH on Saturday May 08, 2021 @06:58AM (#27085934)
Well, you've been given an example that contradicts your "thinking", so either your "thinking" was unknowingly incorrect, or you now choose to believe something that is patently false.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by bombcar on Saturday May 08, 2021 @10:25AM (#27087401)
The TeX license requires you to change the name of you change a single byte.

> All of the methods described in these books are in the public domain; thus anybody can freely use any of the ideas. The only thing I'm retaining control of is the names, TeX and METAFONT: products that go by this name are obliged to conform to the standard. If any changes are made, I won't complain, as long as the changed systems are not called TeX or METAFONT.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @10:40AM (#27087514)
What is your argument here?
Re:Show HN: Lovetris – Tetris which always gives you the bes... by bombcar on Saturday May 08, 2021 @10:36PM (#27092685)
That open source licenses exist that REQUIRE you take credit the moment you fiddle with the source, so it’s not universally despised to do so.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by GistNoesis on Saturday May 08, 2021 @11:50AM (#27088211)
Thanks for the remark.

There already was a link on the github readme to give credit to the original hatetris (MIT licensed).

In addition I have added some link to qtnm hatetris on the play page, too.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by thinkingemote on Saturday May 08, 2021 @06:29AM (#27085761)
The MIT license states the rights, I thought?
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @07:11AM (#27086025)
I’m not saying it’s illegal, I’m saying it’s bad form.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by dylan604 on Saturday May 08, 2021 @11:09AM (#27087822)
This is hanging on the edge of being "I don't like it or disagree with it, therefore it is bad"
Re:Show HN: Lovetris – Tetris which always gives you the bes... by Grustaf on Saturday May 08, 2021 @11:47AM (#27088190)
You could say that. Most discussions outside science lans and courts of laws are about opinions, not objective facts.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by learnstats2 on Saturday May 08, 2021 @02:38AM (#27084541)
The Hatetris code doesn’t appear to have an open source license, or any license, so it isn’t open source.

This use of the code is a clear legal breach of copyright, in the absence of specific agreement with the copyright holder.

(On the Hatetris page, the author declines someone’s request to use the code elsewhere)

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Jon_Lowtek on Saturday May 08, 2021 @03:30AM (#27084812)
Re:Show HN: Lovetris – Tetris which always gives you the bes... by learnstats2 on Saturday May 08, 2021 @01:08PM (#27088931)
I'm not sure I deserve to be so downvoted for this, considering this clarification came after my comment ;(
Re:Show HN: Lovetris – Tetris which always gives you the bes... by haneefmubarak on Saturday May 08, 2021 @03:58PM (#27090175)
I didn't downvote you, but I want to clarify what's going on because I know it sucks to get down voted with explanation.

The reason you're getting so many down votes is because you made strong claims in a harsh tone that turned out to be false in a trivially verifiable manner. The intent there is that you should've verified your claim through and through before attributing a misdeed to someone who simply sought to share something they thought was cool to make with others.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by learnstats2 on Sunday May 09, 2021 @10:24AM (#27096120)
I find it important to identify that yes, a license is required to use someone else’s code - I mean this legally, not morally: you can be sued.

The sibling points about trademark law (which is different) and remix culture (which has some legal protection but not that I’m aware for lines of code) seem to miss this point.

This is a licensed use, it turns out, which is great. If the author here had not identified that before publishing, then they were putting themselves at legal risk.

[on a technicality, the MIT license hasn’t been properly invoked, since the MIT license requires the text of the license to be included in full, but the original author’s consent for use seems now to be clear]

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Pfhreak on Saturday May 08, 2021 @02:44AM (#27084559)
I mean, Hatetris probably wasn't using the Tetris trademarks properly, right? Aren't both just remix culture?
Re:Show HN: Lovetris – Tetris which always gives you the bes... by simondotau on Saturday May 08, 2021 @02:56AM (#27084624)
Morally? I suppose if you squint hard enough.

Legally though, just because one person's proprietary work relies upon another person's proprietary work, doesn't mean it suddenly becomes open source or public domain.

Re:Show HN: Lovetris – Tetris which always gives you the bes... by Pfhreak on Saturday May 08, 2021 @10:29AM (#27087425)
I'm just surprised the community made the critique on this version but not the other one.
Re:Show HN: Lovetris – Tetris which always gives you the bes... by simondotau on Saturday May 08, 2021 @10:09PM (#27092550)
Honestly I’m not surprised. The prior work could be argued as being fair use of the Tetris copyright. It certainly isn’t stealing any market from any official licensed Tetris products or services. Morally, I can find it very easily defensible.

This “Lovetris” work is a blatant copying and republishing of someone else’s proprietary work effort with no permission. Morally, I don’t see this as an egregious abuse, but I can see why this community would object to someone not acting in the spirit of open source licensing.