2048游戏(C#源码)

上传者: gerbcd | 上传时间: 2021-09-21 22:28:00 | 文件大小: 522KB | 文件类型: RAR
Ctrip2048游戏操作说明 1、可使用鼠标或大小键盘上的方向键进行操作; 2、Play按钮 重新开始游戏; 3、Undo按钮 取消本次操作,回到上一步。 Ctrip2048游戏算法 1、游戏开始时随机的产生2个数值为2/4的方格,其中1个方格置于4个角中的一个位置, 另一个方格随机的置于其它位置,其余方格值为0。 2、每次移动鼠标或按方向键后,逐行计算移动后的方格值。每行移动的算法是:先将所 有值为0的数移至行首。能后从行尾开始逐一和前一个数比较,如果相等则合并这2个格子。 3、每合并一次格子,将其值累计到游戏总分中。 4、一次移动操作结束后,如果有方格移动了位置,则在所有值为0的方格中随机的分配一个2/4的值。 5、所有方格值不为0且上下、左右相邻的方格都不相等,则游戏结束。 6、2出现的概率为90%,4出现的概率为为10%。 修改记录: 2014-04-29 修正了“一次移动操作后,无任何方块移动时,也分配一个方格”的Bug。 增加了Ctrip广告链接。

文件下载

资源详情

[{"title":"( 36 个子文件 522KB ) 2048游戏(C#源码)","children":[{"title":"Solution2048","children":[{"title":"2048","children":[{"title":"Ctrip2048.ico <span style='color:#111;'> 128.16KB </span>","children":null,"spread":false},{"title":"2048.csproj <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 13.05KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"Cube.cs <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 312.65KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Cube.Designer.cs <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"2048.csproj.user <span style='color:#111;'> 511B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 17.57KB </span>","children":null,"spread":false},{"title":"2048.csproj.DotSettings.user <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"Ctrip2048.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"GenerateResource.read.1.tlog <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"2048.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Ctrip2048.Cube.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"Ctrip2048.Form1.resources <span style='color:#111;'> 205.19KB </span>","children":null,"spread":false},{"title":"2048.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 16.76KB </span>","children":null,"spread":false},{"title":"GenerateResource.write.1.tlog <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"WindowsFormsApplication2.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"2048.exe <span style='color:#111;'> 354.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"Cube.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"2048.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false},{"title":"2048.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"2048.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"2048.exe <span style='color:#111;'> 354.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"2048.sln <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"2048.sln.DotSettings.user <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"2048.suo <span style='color:#111;'> 28.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • cxl770540123 :
    非常好,推荐
    2019-01-25
  • wudisun123 :
    下载学习了解
    2018-08-01
  • afreet_wu :
    学习了,谢谢分享
    2018-01-02
  • qq_40163715 :
    感谢分享,学习学习
    2017-12-29
  • adamtyn :
    很好的资源
    2017-09-17

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明