Timeline for Wait, which tetromino was that?
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 28 at 1:50 | answer | added | Ajax1234 | timeline score: 2 | |
Sep 17, 2020 at 10:21 | comment | added | Bubbler | @Arnauld A late answer, but no. | |
Sep 16, 2020 at 9:06 | comment | added | Arnauld | A late question, but would it be acceptable to take input as two lists of integers (each integer describing a row as a binary value) with an extra parameter for the width of the board? | |
Sep 16, 2020 at 8:27 | comment | added | Bubbler | @Kirill Yes to the last line. You need to classify the tetromino used (exactly one consistent value for each type), one possible method being the canonicalization. | |
Sep 16, 2020 at 8:10 | comment | added | Kirill L. | A quick clarification of the output. Are our 7 different kinds of output supposed to be strictly unique? For example, if I return a matrix of the same size as input with filled positions corresponding to the tetromino placement (similarly to 'A' letters in your examples, with everything else blanked out) - would this be acceptable? Or would I have to convert it to some canonical shape with respect to translation/rotation, so that only 7 unique values would ever occur? | |
Sep 14, 2020 at 10:13 | comment | added | Arnauld | Not to be confused with Which tetromino is this? :-) | |
Sep 14, 2020 at 9:10 | comment | added | Dominic van Essen | @Arnauld: Thanks for explaining! As you can see, my understanding of the game Tetris was really quite bad! | |
Sep 14, 2020 at 9:04 | comment | added | Arnauld | @DominicvanEssen Floating blocks frequently occur in all standard variants of Tetris. Once completed lines are removed, all the lines above them are shifted but no 'gravity' is applied to whatever remains in the upper part of the playfield. | |
Sep 14, 2020 at 8:45 | comment | added | Dominic van Essen | That's the one: I just meant the endpoint with the row of blocks 'floating'... | |
Sep 14, 2020 at 8:30 | comment | added | Bubbler | @DominicvanEssen If you mean the L one, it's totally valid by just dropping the L. It's not floating in the air due to the block at the bottom left corner. | |
Sep 14, 2020 at 8:28 | comment | added | Dominic van Essen | (also unrelated to the challenge, but isn't test case 3 also an impossible Tetris endpoint? or is there another subtlety that I don't know about?) | |
Sep 14, 2020 at 8:26 | comment | added | Dominic van Essen | Ah! I didn't think of spinning the T after it had 'landed' - thanks for explanation (and for making me aware of the 'standard rules'!). | |
Sep 14, 2020 at 8:23 | comment | added | Bubbler | @DominicvanEssen The second test case is a valid move (T-spin) under the standard rule (SRS). The really impossible ones are the last two. I permitted "impossible placements in real Tetris" since I thought it'd be really hard to explain which moves/placements are valid and which are not. | |
Sep 14, 2020 at 8:01 | comment | added | Dominic van Essen | I found the reference to 'Tetris' a little off-putting, since the second test-case is already an impossible Tetris move... although I 'get' that it'd be tricky to understand the 'moving rows down' bit without reference to Tetris... | |
Sep 14, 2020 at 6:53 | history | became hot network question | |||
Sep 14, 2020 at 5:16 | answer | added | Arnauld | timeline score: 16 | |
Sep 14, 2020 at 2:18 | answer | added | xash | timeline score: 11 | |
Sep 13, 2020 at 22:52 | history | asked | Bubbler | CC BY-SA 4.0 |