Tetris (vs AI)

バージョン 1.12.0.0 (9.15 KB) 作成者: Jan
An extended tetris game, using the plot function. You can either play by yourself or against an AI.
ダウンロード: 1.2K
更新 2011/12/15

ライセンスの表示

----------------------------------------
Tetris:
----------------------------------------

Gameplay:
- move: arrows
- rotate: z and x
- pause: p

My highscore for the given standard configuration is now 2680 ;)

----------------------------------------
Tetris AI:
----------------------------------------

The game tetris is played by the computer, which chooses the move that has a maximum blockvalue after landing, where:

blockvalue = number of edges that touch a wall or other block - average height of the block.

Of course other factors can and maybe will be added to blockvalue: we could punish gaps, reward full rows, etc.

After 500 runs, the results of the standard configuration are:

mean: 1733 (160 lines)
worst: 260 (26 lines)
best: 8080 (748 lines)

----------------------------------------
Tetris versus the AI:
----------------------------------------

The AI and the original Tetris game are combined in one game. First you make a move in your own field and then the AI makes a move with the exact same block in the other field.
Try to beat the AI!

引用

Jan (2024). Tetris (vs AI) (https://www.mathworks.com/matlabcentral/fileexchange/33701-tetris-vs-ai), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersVideo games についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: MATLABTETRIS

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.12.0.0

The Tetris_vs_AI game is added.

1.9.0.0

AI added

1.6.0.0

Found and corrected an error in createblock()

1.5.0.0

Added 6 levels (level = certain set of blocks)

1.4.0.0

Found and removed a small error in the line removing loop.

1.3.0.0

Scorekeeping added

1.0.0.0