Live data from Hacker News

Show HN: Tinytetris – 80 x 23 Terminal Tetris

github.com

31–40 of 54 posts

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#31
post #4
post #3

Cool! I made a demo playable in the browser: https://repl.it/@amasad/tinytetris Or run it directly here: https://tinytetris.amasad.repl.run/

Is it just me? I can't make any operations, and tetrominoes did not drop from center (horizontally), but kind of from random position

Try wasd instead of arrows.

And yes, the starting position of new pieces looks random.

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#32
Very nice; writing minified code is a challenge I've never been particularly good at.

As it happens, though, I had a university assignment due today to write a WebGL falling-triomino game:

  Start game: space
  Rotate: a/z s/x d/c
  Move: arrows
  Drop: space
http://2-71828.com/T%C3%B6lvugraf%C3%ADk/Verkefni03/tris.htm...

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#33

On my Mac I can just type: 'emacs -f tetris'

Yes, but that's rather besides the point. It's not the fact that it's Tetris in a terminal; it's also the fact that it's minified code. Look at the GIF on the Github page; that's the code of the game.

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#34
post #10
post #8

There used to be a playable Tetris in the favicon, which I found from HN[1], but it looks like the website[2] is dead now :( [1] https://news.ycombinator.com/item?id=3873623 [2] http://favris.info/

Probably because of how vocal Tetris's IP lawyers are.

From what I understand (correct me if I’m wrong), they don’t care if you make a Tetris game, just don’t have the name “Tetris” in your title.

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#35
post #9

amazing op! tetris is one of those game on my need to implement list and never actually finished an implementation :)

I found this a while back: http://javilop.com/gamedev/tetris-tutorial-in-c-platform-ind... It’s Tetris in C++, so it should be easy to adapt it to a C like language (or other if you can follow the logic)

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#37
post #19

Earlier quoted context omitted.

Copyright does not protect game mechanics and rules. In Tetris v. Xio , they successfully argued that the game infringed on trade dress. They claimed that the pieces looked like ones in other games, which in my view is impossible not to infringe on since there have been hundreds of Tetris games with every type of piece design possible. They claimed that they used tetrominos, and the playfield was twice as high as it…

Xio did, in fact, attempt to point out that the shapes of the tetrominos are functional elements and not subject to trade dress. The judge disagreed. The judge also said that while copyright does not protect the abstract concept of a falling block game, he specifically cited the shapes of the blocks and the playfield size as copyrightable. It's settled U.S. case law. If you develop a clone of Tetris, you are infringi…

In the ruling, the judge states, "The style, design, shape, and movement of the pieces are expression; they are not part of the ideas, rules, or functions of the game nor are they essential or inseparable from the ideas, rules, or functions of the game."

Clearly the judge disagreed that these elements weren't protectable, but do you agree? I'm say that I don't agree with the judge. Changing the the kind of polyominoes will make the game easier or harder (imagine how easy it would be with dominoes). Changing the playfield dimensions also changes the difficulty: a lower ceiling as well as a narrower well makes it much more difficult to survive.

Re: Show HN: Tinytetris – 80 x 23 Terminal Tetris

#38
post #17

Fascinating! Are there any easy to follow tutorial on how to manipulate pixel blocks (I wonder what the right term is) inside terminals?

If you're referring to the game pieces, the creater probably just used these Unicode characters: https://en.wikipedia.org/wiki/Block_Elements

As you can see from the program and screenshot right in front of you, xe did not.

It's one of only two printw()s in the code, and the screenshot shows the result quite clearly.

Post reply on HN