基于EasyX sqlite的剪刀石头不游戏.zip

上传者: AKA91w | 上传时间: 2021-05-14 19:06:31 | 文件大小: 9.07MB | 文件类型: ZIP
一、目的与要求: 1.1问题描述 在游戏中,孩子们用手表示石头、剪刀或布中的一个,出拳头表示石头,伸出两根手指表剪刀,伸手表示布,孩子们面对面地从1数到3时做出他们的选择,如果所作选择是一样的,则表示平局,否则就按如下规则决定胜负: (1)石头砸坏剪刀; (2)剪刀剪碎布; (3)布覆盖石头 1.2功能要求 (1)主页:用户通过鼠标点击主页上的菜单选项,能够选择开始游戏、继续上次游戏、查看游戏记录、退出游戏。 (2)开始游戏:用户单击“开始游戏”,进入游戏界面,开始加载游戏。加载完成后,窗口底部会分别显示“剪刀”,“石头”,“布”三张图片以及分别显示“保存记录并退出游戏”和“直接退出”两个按钮,用户单击图片,完成选择,此时游戏正式开始。 (3)显示比赛情况:开始游戏并且用户完成选择后,程序会以图片的形式在游戏界面显示“我的选择”与“电脑的选择”,同时还有得分情况、回合数、平局数。 (4)退出游戏:单击“退出游戏”按钮后,显示“欢迎下次光临”,3s后自动关闭游戏。 (5)保存游戏记录并退出游戏:单击“保存游戏记录并退出游戏”按钮后能够将“我的选择”、“电脑的选择”、“我的得分”、“电脑得分”、“回合数”、“平局数”、“记录创建时间”保存至数据库当中。 (6)继续上次游戏:单击后,程序将读取数据库中最新被创建的记录,返回到上次游戏的界面,并且显示上次的比赛情况,同时用户也能同过选择图片,继续玩游戏,游戏数据会继续追加。 (7)查看游戏记录:单击“查看游戏记录按钮”后,程序将会在窗口中按照记录创建的时间由早到晚地显示最近被创建的20条记录,并且在窗口右上角显示“回到主页”按钮和“退出游戏”按钮,点击后会执行相应的功能。

文件下载

资源详情

[{"title":"( 56 个子文件 9.07MB ) 基于EasyX sqlite的剪刀石头不游戏.zip","children":[{"title":"SQL.h <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"sql_test.sln <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"sqlite3.h <span style='color:#111;'> 570.53KB </span>","children":null,"spread":false},{"title":"my_player.h <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"Score.cpp <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"my_player.cpp <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"com_player.cpp <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"sqlite3.def <span style='color:#111;'> 7.36KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 34.52KB </span>","children":null,"spread":false},{"title":"sql_test.vcxproj <span style='color:#111;'> 7.91KB </span>","children":null,"spread":false},{"title":"Functon.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"Score.h <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"sqlite3.dll <span style='color:#111;'> 2.02MB </span>","children":null,"spread":false},{"title":"sqlite3.lib <span style='color:#111;'> 60.91KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"sqlite3ext.h <span style='color:#111;'> 34.61KB </span>","children":null,"spread":false},{"title":"com_player.h <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"sql_test.vcxproj.FileListAbsolute.txt <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":"SQL.obj <span style='color:#111;'> 73.01KB </span>","children":null,"spread":false},{"title":"Score.obj <span style='color:#111;'> 82.68KB </span>","children":null,"spread":false},{"title":"com_player.obj <span style='color:#111;'> 44.96KB </span>","children":null,"spread":false},{"title":"player.obj <span style='color:#111;'> 777B </span>","children":null,"spread":false},{"title":"vc142.pdb <span style='color:#111;'> 1.12MB </span>","children":null,"spread":false},{"title":"sql_test.pdb <span style='color:#111;'> 2.47MB </span>","children":null,"spread":false},{"title":"石头-剪刀-布游戏.exe <span style='color:#111;'> 1.27MB </span>","children":null,"spread":false},{"title":"sql_test.log <span style='color:#111;'> 277B </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 34.52KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 68.09KB </span>","children":null,"spread":false},{"title":"sql_test.ilk <span style='color:#111;'> 2.15MB </span>","children":null,"spread":false},{"title":"sql_test.exe.recipe <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"sql_test.obj <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"Functon.obj <span style='color:#111;'> 204.77KB </span>","children":null,"spread":false},{"title":"sqlite3.obj <span style='color:#111;'> 3.14MB </span>","children":null,"spread":false},{"title":"sqlite3.c <span style='color:#111;'> 7.89MB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 699.00KB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 34.72KB </span>","children":null,"spread":false},{"title":"score.db <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"sql_test.tlog","children":[{"title":"sql_test.lastbuildstate <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 20.72KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 558.01KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 13.54KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 10.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"sql_test.exe <span style='color:#111;'> 1.27MB </span>","children":null,"spread":false},{"title":"my_player.obj <span style='color:#111;'> 44.96KB </span>","children":null,"spread":false},{"title":"3.png <span style='color:#111;'> 26.86KB </span>","children":null,"spread":false},{"title":"c_player.obj <span style='color:#111;'> 777B </span>","children":null,"spread":false}],"spread":false},{"title":"sqlite3.c <span style='color:#111;'> 7.89MB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 34.72KB </span>","children":null,"spread":false},{"title":"score.db <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"sql_test.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"SQL.cpp <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"sql_test.vcxproj.filters <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"3.png <span style='color:#111;'> 26.86KB </span>","children":null,"spread":false},{"title":"Functon.cpp <span style='color:#111;'> 17.92KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

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