215 points · by GistNoesis · 5y ago · 123 comments
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 :)
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.
Somehow went my entire life not knowing that meaning of the word!
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
I see a combination of characters loosely looking like some East Asian alphabet, I guess that this is some kind of encoding ?
ҫටไଈۑටހঅ௧ΧІݶݼق໑অௐRʈঅ௨ఢȵݶԳقฒߢ௨ఢƔݹடٴໃٳɺقຯঐ౬ΟໃƁԈقໄɕலۇȣJலปາஞݫටࠋऐഹටоࡨ௩ѻІԔԥಘϾঀƥقഥಕ௨vІðƐටƚࡨ௨uಸݹறঔໃΥeٯໃҾkقബເवॴຯɛ௨කТ൫ஸڐໃپϢඡಋڝ௨ΣІݞ౻ටࠄঅடڠາɚ௨ౚ༣ݹބقଡɕષقࠄঅटقԀɕ௧uଈݡКʈເŧݸටඨࡖ௨ࡆІܥ౮قଞݸƕقܢઝடٴໃܤƓقฮࡈ௨ඉʑݢ౻ඥСݸ౫ඡಋঅஐٴໃܡవටଥɕஜؿϽߡƗࡕ
If it could always set me up for amazing t-spin plays, that would be really enjoyable, I think.
Two bigs tower and a sad perfect spot to fit a L shape at the base of them :D
Might be more interesting if there were other constraints like it couldn't give you the same piece too often or something.
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.
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)
Started a new game. Put the long piece vertically against a side wall. Got an S piece. Whhhhyyyyyyyyyyy?
I appreciate a free game but is this one of those abusive research projects?
Edit: Undo and redo don't work here either
"Undo and redo" shortcut don't seem to work, but the clickable undo and redo button at the top left work.
It's a quick project which arose from curiosity : "what would happen if the hateful AI tried to do the opposite".
This AI does its best to always provide you some outs to the limit of its abilities. You have plenty of freedom to guide the game into interesting landscape while having an AI that always offer you safe ways to recover. But you still have to play your part, the AI can only handle half the job.
Lovetris has some interesting complexities, and touch the subject of collaborative AI whereas Hatetris is an adversarial AI.
Collaborative AI and AI alignment are interestingly hard research subjects which have philosophical and technological components.
With subject as deep as love and working jointly, it's hard to satisfy everybody.
Lovetris with its "exhaustive short horizon exploring strategy with simple terminal heuristics" isn't capable of perceiving long-term intent farther than its tree searching depth. And reciprocally, if you set the horizon too far, the human player is bad at reading the intent of the AI, and doesn't do what the AI suggest.
There are probably better strategies, like monte-carlo tree search with some neural networks which could better solve the intent communication problem between the human and the AI, and provide a better experience, but they take a little more work than just flipping a sign.
Add a little feedback via data collection and such an AI can probably send its player into an hedonistic loop.
"Exhaustive short horizon exploring strategy with simple terminal heuristics" - is this in reference to the for loop which calculates the future possible states of the game up to a certain depth?
It seems to be a state exploration algorithm. The number of possible game states is well-defined here. Perhaps you're conflating the subject of video game AI with concepts related to machine learning AI?
Ζටໃܢ௨ඖȤཧ௪Ϻതझ௨චʑݹɷටÐݹಏටෆࢭ௧ڈໃŧ௨൞ໃӃ௨ƣໃڍਚඨƙђ௨ఢƙɕஓقາђ௨ചໃυۑටҏಠ௨శժݹࠒуໃZ௨बໃܘݤঋТວ௧ϽІܥ౫ටլݹષsເђரටใחਚඨʃݶԪටПݷ౫චƸݹߤඖܘͻݫళɑŧԤƣවݺԥಅවݟవටฮࡉ௨ഖVݶɷඖʛݸԫقիஈԪقНݸ౦قࡍݥݬϺȤஅԪضȣקਚඝܘͷਚ൲UɝϢටࠄݹ௧uಸݹଢටಊݹಏටෆࡥԥඪܘݚԥචȠɕ୦уෆऄࢶقȤஅԪقȤॾiʝȣݚԥvІקਛටฎJ௧ƣຯђఅටӿݎߜ൶ຜݞߜథลɛతටවࡁ௨ಘƙɕ௩ʝÐݷԫقໃѢ௭ටฅຍஜҔСݷԪකНݺد෮ໃѠ௨ڄฮࡨ௨ڠຈݟ௨ചໃͷ௧ƣຜݸđقÐܢஸඥܒࡉ௨ඝЛݹଛɦଈݶɝقVݹளڄໃѢ௨ฃໃɢԥගІپ௨౾ܘܡభ൝ඨҲϢඡНऄஐڄຯ൫ࡋඐ๒ݕகණවߢ௨wະࠇஐڠWɔҋගƬݶమwฅݸసටຯɝѻටWڝ௨౾నݹਓeІݹ௧Σଈܦ౫ටȤঅ௨ඡܘܢ௨ช൧ܥಈಀଈɠஐڌະࢭࢴقଭݪԥڠࡍݟ௧इවݶɷƣКݹ௨uഉݸƔঌໃܢߛΟໃi௨ೲໃԔҫටనऔௐ෮ໃŧԥඖܘݟ௨ಛໃZௐڌຯঔஓڈະऄࢴටПܭԥ൝Єঅઽചໂђߛsවݶɶƣܧɕ௨ටฎࡑ௨ఢƚݹஐټໃҲтටࠄڢ௨ඨІݹಳೲໃঅઽගЄॾಥ3
Still a bit far from the randomness of the real Tetris but would enable quite some strategies..
This is doing something different, which can't be described by the given blurb.
[1] if you lie the two long pieces horizontally next to each other against the left wall
If that contradicts your notion of "best piece" then either the author is being too imprecise or you are being too literal. Either way I don't think it's an interesting discussion.
It triggers me that I couldn't get a full screen clear
And you can repeat the pattern forever and ever! :D
To be clear, the people that took away meaning from this word were the people that added "trigger warnings" to the most trivial of things. "trigger warning: meat eating." "trigger warning: bad words."
> It is tragic that people with a hatred of people living with conditions like PTSD and epilepsy have turned that word into a joke
That's really not what's happening.
I worked around it until I got a well on the right hand side, at which point all I got was long-bars. This is the cleanest path I could find to an infinite run of tetrises: ذටරऍƐඥժݹߝɿඍݷ౫ටฅڝ௨పໃܡ௨ඖІݮ௨ഗƊݹɷඝܘܢ௨پܘݓ௨ಮІܦ௨ชІݶΗʈາђடටවݹदඦܘݣ௨ಬໃƎௐڌໃݷಒටԠђௐڊಸݹࠂƣຜࡁரڀฮࡁਓȺಥɜਆ
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".
ϢටलݹઊƗȤڥ௨೯ಽݹॴਉПݹ௨ඥΒधԥටеݹఒௐໃޅݫටДݹ४Οໃࡑ௧پഋݹরΟະࠀ௨ೲໃԔԥඦܯ൫ஜуໄஈமΟະࡊѻ೯लܭЕڠฅɕসඤʈཧࢶكɑݚԥఫІݹஶɈໂɝЩටܬݹ௨ඩໃܭݹقฅ൫௨ටໃݹ௨൜ೡɕরටɓݷಏ୮ฅ൫వට౻ݷԥಀඤݪɷ੬ഫןЬكƬמ௨ඍȣݹ௨ටลஈಏඤɱџбඩແࡁ௨ඨʑעமҼใɕࢳচܘݹ௨ටd
edit: a very safe place indeed, I played for 5 minutes and the excitement is kinda low once you figure out how to trick the AI to give you what you want :D.
Best strategy is to clear 1, 2, or even maybe 3 lines at a time. (But don't get in the 3-line habit, you might anger the AI still)
ଵටໂ໒௨ටಭݹ௧ଆඤݹ௨ඖಸݹளஶໃݑɷටॡݹறටໂວ௨ටໂٽ௨യժݹ௨ඥషݹઋقາח௨ඦІͻϢටƘঅணএဒݱРڠසމଯڠԮɥЬږ1
Edit: I wonder if you can do that with Hatetris also, if the difference is just flipping a sign as the author says.
ࠁටໃݶԣலໃݹࠅॴໃݛԥ੯ටஈ௨ඥ೦ݹ௨ඥಸݹ௨ටമ๐௨ൽഉݹݹقາڭ௨ටഫݑСටໃԓ௦૫ໃݹ௨ටໃݹ௨ටໃxħقໃƬݴΟໃKЭइໃC౻ටຯٲಏقแڽ௨ఢƔݹரٯໃԔޛඥДݹߚฃໂɛԥడM൵௨బໞݹҬɦషݸßࡇHܤЪsເלԚؿИݷƶ