登录
首页 » matlab » Matlab2048

Matlab2048

于 2020-12-10 发布 文件大小:2KB
0 343
下载积分: 1 下载次数: 12

代码说明:

  通过按键(W,A,S,D或方向键)控制小块的移动方向,当有两个小块相同时,把两者合并,产生一个新块(其值90%为2,10%为4)。并给予一定的分数,记录在数据文件中,显示在界面上。当最大块的值达到2048时,您将获得胜利,胜利后您可以选择继续游戏(当最大块的值为4096时,您将获得连胜,依次类推),或者退出游戏。(By controlling buttons (W, A, S, D or direction key), we control the moving direction of small pieces. When two blocks are in the same way, we merge them into a new block (the value is 90%, 2, 10% is 4). And give a certain score, record in the data file, display on the interface. When the maximum block value reaches 2048, you will win. After winning, you can choose to continue playing. When the maximum block value is 4096, you will win the game in a row or by analogy.)

文件列表:

move_element.m, 1079, 2014-07-21
move_mat.m, 1633, 2014-07-21
valid_check.m, 488, 2014-07-24
add2mat.m, 461, 2014-07-21
main.m, 1065, 2014-08-16

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wzq
    一个简单的五子棋程序,可以人机对弈,采用opencv1.0+vc6.0,来自于网上(A simple backgammon procedures can be man-machine chess, using opencv1.0+ vc6.0, the Internet)
    2016-12-23 09:57:42下载
    积分:1
  • 钓鱼区域
    它可以在SAMP游戏中实现钓鱼区域划分。它需要自己运行,实现不同的颜色。(It can divide fishing area in SAMP game. It needs to run on its own to achieve different colors.)
    2020-06-24 23:40:12下载
    积分:1
  • zuma
    祖玛小游戏 实现基本功能 基本算法 给大家参考一下 地图两种圆形 和 直线(Zuma game to achieve the basic functions basic algorithm to refer to two kinds of circular and linear maps)
    2013-09-02 22:50:26下载
    积分:1
  • caishuzi
    猜数字:由计算机随机产生一个1~10000以内的数字,用户根据提示猜出该数字,功能要求如下: (1)游戏结束条件:1)在规定时间内正确猜出该数字;2)规定用时耗完。 (2)游戏提示:根据用户的输入与所产生数字的大小关系给出正确提示,例如,随机产生数为5000,若用户输入6000,则提示“高了”,若用户输入4000,则提示“低了”。 (3)游戏结果显示:1)若用户在规定时间内正确猜出数字,则显示“恭喜!正确猜出数字***。”;2)若到达规定时间但并未猜出,则显示“很遗憾,未能在规定时间内猜出正确数字,该数字为***。” ,其中,“***”表示所需猜出的随机数。 (4)游戏时间设置:可由用户灵活设置游戏时间,此部分内容应在游戏开始前完成。 (5)游戏退出设置:在每轮游戏结束之后,给出提示语,请用户选择是否继续游戏。 (Guess the Numbers: randomly generated by computer within a 1 ~ 10000 Numbers, according to the user to guess the Numbers, functional requirements are as follows: (1) the game conditions: 1) correctly guess the number within the given time 2) regulation is run out. (2) game tip: according to the size of the user input and produced digital relationships give prompt, correct, for example, random number is 5000, if the user input, 6000 indicates that high , if the user input, 4000 indicates that the low . (3) the game results showed: 1) if the user within the prescribed time to guess the Numbers correctly, is displayed congratulations! Guess the right number***. 2) but not guess, if arrive time required is displayed it s a pity that failed to guess the right number within the prescribed time, the number is***. , among them, *** needed to guess the random Numbers. (4) : time setting can be set by the user the game time, this part should be completed before the start of the ga)
    2020-07-04 13:20:01下载
    积分:1
  • game21
    21点游戏 (1)实现一个扑克类Poker,并提供取牌函数,主函数实现洗牌、取牌、显示牌内容的过程 (2)实现多玩家的21点人机游戏,每个玩家依次叫牌,直到所有玩家都不再叫牌位置,最后显示每人手里的牌,并显示输赢结果 c++(21:00 Games (1) to achieve a poker class Poker, and offers to take the licensing function, the main function to achieve shuffle, take cards, display cards content process (2) to achieve human-computer multi-player blackjack game, each player in turn called cards until all players are no longer bid position, the last display cards per hand and shows winners and losers c++)
    2015-12-24 17:44:06下载
    积分:1
  • Eight-Queens-Games
    说明:  八皇后小游戏,实现说明,以及代码实现原文件。(Eight Queens game to achieve that, and the code of the original document.)
    2011-03-07 23:02:18下载
    积分:1
  • Life32
    这是用C++开发的又一款生命游戏!如果你还不知道什么是生命游戏,那么你还在犹豫什么呢?生动的展示生命的运动!(This is a further development of C A game of life! If you still do not know what is the game of life, then you are still hesitant? Vivid display of campaign life!)
    2006-12-11 22:57:06下载
    积分:1
  • 8_shuma_game
    C++九宫格数码游戏源码,有兴趣的朋友学习一下。(C++ Jiugongge digital game source code, learn about friends who are interested.)
    2011-05-25 06:11:57下载
    积分:1
  • 45675765676
    海战小游戏,游戏编程源码,很好的参考资料,有需要的就下载吧。(The naval game, game programming source code, a good reference, there is a need to download it.)
    2013-10-08 22:23:49下载
    积分:1
  • 代理假人压测
    集群压测,打爆任何中小型Minecraft服务器(Cluster pressure measurement, any small Minecraft server.)
    2017-08-14 21:43:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载