# Pong <難易度 中>

<http://www.ponggame.org>

Pongは一般向(いっぱんむ)けのTVゲームという分野(ぶんや)が、誕生(たんじょう)する、きっかけになったゲームです。 1972年(ねん)11月(がつ)にアタリ社(しゃ)で開発(かいはつ)されました。

![](/files/-LAM18SrNU32n1crcfK2)

Pongは対戦(たいせん)ゲームです。左右(さゆう)に配置(はいち)されたラケットを、上下(じょうげ)に移動(いどう)させて、ボールを打(う)ち返(かえ)すゲームです。

相手(あいて)にラケットで打(う)ち返(かえ)すことを失敗(しっぱい)させると、得点(とくてん)が入(はい)ります。

先(さき)に15点(てん)を先取(せんしゅ)したほうが勝(か)ちとなります。

## Scratchで作成(さくせい)してみよう

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

![](/files/-LAM18TWsfJIH6LcxxDy)

ボールが青色(あおいろ)の部分(ぶぶん)に衝突(しょうとつ)すると、右側(みぎがわ)に得点(とくてん)が入(はい)ります。ボールが赤色(あかいろ)の部分(ぶぶん)に衝突(しょうとつ)すると、左側(ひだり)に得点(とくてん)が入(はい)ります。

上(うえ)キー、下(した)キーを押(お)すと、灰色(はいいろ)のラケットが上下(じょうげ)に移動(いどう)します。

Aキー、Zキーを押(お)すと、黒色(くろいろ)にラケットが上下(じょうげ)に移動(いどう)します。

ボールにラケットが衝突(しょうとつ)すると跳(は)ね返(かえ)ります。


---

# 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/pong.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.
