Matlab 2048

版本 1.2.0.0 (3.2 KB) 作者: Joren Heit
Matlab implementation of the addictive game 2048
1.0K 次下载
更新时间 2014/3/25

查看许可证

This game, recently invented (March 2014) by Gabriele Cirulli, is gaining popularity due to both its simplicity and complexity!
The only goal is to create a tile containing the number 2048. You do this by sliding the numbered tiles around (using the arrow-keys). When two identical numbers meet, they merge by adding up. This allows you to generate powers of 2, but it will get exponentially harder as you get further along!
For more information on the game, I refer to the Wikipedia entry at http://en.wikipedia.org/wiki/2048_%28video_game%29.
This implementation, I must admit, is poorly documented, because it was just an afternoon project. I think however that the code is pretty much self-documenting. If not, you are free to ask anything!

Have fun and post your high-scores for some nice competition! :-D

To play:
- download and extract the submission
- run >> start2048

Enjoy!

引用格式

Joren Heit (2024). Matlab 2048 (https://www.mathworks.com/matlabcentral/fileexchange/46003-matlab-2048), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Signal Processing 的更多信息
标签 添加标签

Community Treasure Hunt

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

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

* Updated the description (sorry I forgot!), no need to download the linspecer package anymore.

1.1.0.0

* Removed 'linspecer' dependency by hardcoding the colormap. Still, kudo's to the author!
* 4's will now spawn with 10% probability (2's with the remaining 90%)

1.0.0.0