# Tiny TETRIS<難易度 上上>

テトリスは落ち物パズルゲームの元祖です。ソビエト社会主義共和国連邦科学アカデミーで働いでいた科学者アレクセイ・パジトノフによって作成されました。

テトリスは通常のプログラム言語的な処理で書くと素直にかけるのですが、Scratchで書くのはかなり大変です。

本書での最難関のプログラミングとなります。気長にトライしてみてください。

## TETRIS

![](/files/-LAM16sDg4fJAMo9QvCO)

テトリスは上からTetriminoという、四つの四角形の組み合わさったブロックが上から降ってくるゲームです。

この、テトロミノを横方向に隙間なく並べると、ブロックを消すことができ、同時に消した面積が大きいほど高得点を得ることができるゲームです。

## Scratchで再現してみよう

<https://scratch.mit.edu/projects/84309456/>

![](/files/-LAM16sUPD2Il-drVZLl)

左キーを押すと、Tetriminoが左に移動します。 右キーを押すと、Tetriminoが右に移動します。 下キーを押すと、Tetriminoが下に移動します。 Spaceキーを押すと、Tetriminoが回転します。

## REF

<https://ja.wikipedia.org/wiki/テトリス>

<https://en.wikipedia.org/wiki/Tetris> <https://scratch.mit.edu/projects/84309456/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://firefirebook.firefirestyle.net/tetris.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
