2048 MATLAB Edition

版本 1.1.0.1 (54.1 KB) 作者: Jiro Doke
This is a MATLAB implementation of the 2048 game
8.6K 次下载
更新时间 2016/9/1

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

2048 is a game originally created by Gabriele Cirulli. This is a MATLAB implementation of the game.
For users of R2012b or newer, install the app. For older versions of MATLAB, you can run "play2048" inside the "NonAppVersion" folder. You must be using MATLAB R2009b or newer.
There's also a simulator where you can test out your own game solving algorithm. The algorithm must be a MATLAB function with the signature:
function direction = myfcn(board)

where "board" is a 4x4 matrix of numbers representing the game board (NaN for empty spots), and "direction" is a character array representing the direction to move the blocks, i.e. 'up', 'down', 'right', or 'left'.

Read "readme.txt" for more information.

引用格式

Jiro Doke (2024). 2048 MATLAB Edition (https://www.mathworks.com/matlabcentral/fileexchange/46124-2048-matlab-edition), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

Updated license

1.1.0.0

Added copyright information to all MATLAB files.