首页 课程资源 C/C++     /    C++三子棋代码

C++三子棋代码

上传者: wangtarry | 上传时间:2021/8/24 23:52:07 | 文件大小:305KB | 文件类型:zip
C++三子棋代码
#include"iostream.h"#include"chess.h"#include"rule.h"#include"result.h"voidmain(){ charch; chessch1('x'); chessch2('o'); while(ch!='N'){ initboard(); qipan(); intk=1; while(1){ ch1.xiaqi();//'x'方先下 qipan(); if(ch1.judge()){ ch1.Wins(); ch2.Loses(); break; } if(k==5){//'x'方下了5次还未赢棋,即平手 ch1.Draws(); break; } ch2.xiaqi();//'o'后下 qipan(); if(ch2.judge()){ ch2.Wins(); ch1.Loses(); break; } k++; } ch1.show(); ch2.show(); cout<>ch; }} 本软件ID:3435170

文件下载

资源详情

[{"title":"(24个子文件305KB)C++三子棋代码","children":[{"title":"三子棋","children":[{"title":"main.h <span style='color:#111;'>8B</span>","children":null,"spread":false},{"title":"三子棋.dsw <span style='color:#111;'>537B</span>","children":null,"spread":false},{"title":"result.h <span style='color:#111;'>323B</span>","children":null,"spread":false},{"title":"三子棋.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"三子棋.dsp <span style='color:#111;'>4.35KB</span>","children":null,"spread":false},{"title":"1.cpp <span style='color:#111;'>671B</span>","children":null,"spread":false},{"title":"rule.h <span style='color:#111;'>2.38KB</span>","children":null,"spread":false},{"title":"init.ncb <span style='color:#111;'>33.00KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'>60.00KB</span>","children":null,"spread":false},{"title":"1.obj <span style='color:#111;'>18.20KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>57.00KB</span>","children":null,"spread":false},{"title":"三子棋.exe <span style='color:#111;'>212.05KB</span>","children":null,"spread":false},{"title":"三子棋.ilk <span style='color:#111;'>262.95KB</span>","children":null,"spread":false},{"title":"三子棋.pdb <span style='color:#111;'>513.00KB</span>","children":null,"spread":false},{"title":"三子棋.pch <span style='color:#111;'>238.50KB</span>","children":null,"spread":false}],"spread":true},{"title":"init1.h <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"init.h <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"三子棋.opt <span style='color:#111;'>53.50KB</span>","children":null,"spread":false},{"title":"init.dsp <span style='color:#111;'>3.30KB</span>","children":null,"spread":false},{"title":"chess.h <span style='color:#111;'>263B</span>","children":null,"spread":false},{"title":"init.plg <span style='color:#111;'>242B</span>","children":null,"spread":false},{"title":"init.dsw <span style='color:#111;'>533B</span>","children":null,"spread":false},{"title":"三子棋.plg <span style='color:#111;'>1.23KB</span>","children":null,"spread":false},{"title":"init.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • weiyanzhaoxiao:
    能跑,逻辑挺清晰的,学习了。2016-04-20

免责申明

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