Computer plays Tetris by itself

版本 1.0.0.0 (12.9 KB) 作者: Maxim Vedenyov
Some not perfect AI used.
309.0 次下载
更新时间 2011/11/15

查看许可证

http://simulations.narod.ru/

Computer plays classic Tetris by itself, 10x20 gamepad, 7 random 4-squares Tetris blocks come. There are some not-perfect AI: scan all positions and all rotation to find minimum of value: number_of_holes + relative_high. Number of holes in gamepad is used to break tie. Usually game over at 10-80 lines.

See how it works here:
http://www.youtube.com/watch?v=Yeiy-K1ztfY

Run test1.m to see.

引用格式

Maxim Vedenyov (2024). Computer plays Tetris by itself (https://www.mathworks.com/matlabcentral/fileexchange/33779-computer-plays-tetris-by-itself), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Video games 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0