Skip to main content

Questions tagged [tetris]

For challenges related to the classic arcade game Tetris.

7 votes
10 answers
962 views

Classic Tetris was often a difficult game to play. One problem was that you could only work with the Tetris piece you were given, so if you had an awkward board, it would sometimes be difficult to ...
vbxr's user avatar
  • 179
23 votes
3 answers
2k views

Background Tetris is a single-player game played on a rectangular grid with tetromino pieces. When you fill one or more lines with tetrominoes, the filled lines are removed, and all blocks above them ...
Bubbler's user avatar
  • 79.5k
19 votes
5 answers
1k views

Challenge Taken from my university code challenge contest This is actually Day 0 but yesterdays' challenge was too easy and can be a dupe of another question here. Tetris is a video game that became ...
Luis felipe De jesus Munoz's user avatar
18 votes
1 answer
1k views

Your task is to implement a Tetris strategy balanced in terms of score vs code size. In this version of the game tetrominoes are rotated and dropped from above into a grid of 20 rows and 10 columns. ...
ngn's user avatar
  • 15.7k
55 votes
9 answers
5k views

Given an unsigned 16-bit integer N, your task is to determine whether its binary representation mapped inside a 4x4 matrix is matching a tetromino shape, and if so, which shape it is. Matrix Each ...
Arnauld's user avatar
  • 207k
5 votes
0 answers
417 views

Playing tetris is fun. Watching an AI play tetris is also fun. Some tetris AIs will always ignore the possibility of maneuvering a piece under an overhang, which makes me sad. It means that the ...
BenGoldberg's user avatar
3 votes
1 answer
2k views

Introduction In the game The Witness (possible spoilers ahead) there is a group of puzzles that involve drawing a Tetris piece with your line while making sure that the symbol for the Tetris piece ...
Bobas_Pett's user avatar
  • 1,045
38 votes
4 answers
4k views

Description We consider a slightly simplified version of Tetris where each move consists of: rotating the piece clockwise, 0 to 3 times positioning the piece at a given column fast drop The goal is ...
Arnauld's user avatar
  • 207k
13 votes
4 answers
601 views

Write code to figure out whether a run of Tetris pieces could be generated by the official Tetris algorithm. Fewest bytes wins. Official Tetris games generate the sequence of falling pieces in a ...
xnor's user avatar
  • 150k
14 votes
1 answer
534 views

You should write a program or function which given a list of tetris blocks as input outputs or returns the biggest gap between two points in the same height level which the pieces can connect. The 7 ...
randomra's user avatar
  • 20.9k
35 votes
3 answers
3k views

In the game Tetris, there are 7 types of bricks or Tetriminoes, which are mathematically known as tetrominoes because they are all made with 4 square segments: The have the names I, J, L, O, S, T, and ...
Calvin's Hobbies's user avatar
13 votes
1 answer
1k views

Introduction Tangrams are a classic puzzle involving arranging/fitting blocks into various shapes. From the Chinese 七巧板 - literally meaning "seven boards of skill". Let's take this idea ...
CzarMatt's user avatar
  • 1,979
34 votes
18 answers
5k views

In traditional Tetris, there are 7 distinct tetromino bricks, each denoted by a letter similar to its shape. ...
Calvin's Hobbies's user avatar
8 votes
1 answer
3k views

The challenge is about finding an optimal solution on how to place a number of given shapes. It is oriented on the principle of Tetris, where it is optimal to pack the given pieces as tight as ...
MOnsDaR's user avatar
  • 183
10 votes
1 answer
2k views

I like Tetris a lot, but I'm not very good at it. Just once I'd like to see that spaceship take off in front of my own eyes! And since computers are oh-so great at everything, the only possible ...
Sean Latham's user avatar
  • 1,403

15 30 50 per page