Advertisement

中国象棋游戏使用C++编写的源代码。

  •  5星
  •     浏览量: 0
  •     大小:None
  •      文件类型:None


简介:
中国象棋游戏及配套源代码,该游戏展现出相当程度的人工智能水平。此外,游戏界面设计极具视觉吸引力,资源包内包含完整的VC++源代码以及相应的工程文件,方便开发者进行进一步的修改和扩展。

全部评论 (0)

还没有任何评论哟~
客服
客服
  • C++
    优质
    这段简介描述了一款使用C++编程语言开发的中国象棋游戏的源代码。它提供了完整的中国象棋规则实现,并且面向对C++编程和棋类游戏感兴趣的开发者开放研究与学习。 本游戏为中国象棋,具备较强的人工智能,并且界面设计非常精美。资源包含完整的VC++源代码及工程文件。
  • C语言.cpp
    优质
    这段代码实现了一个使用C语言编写的基本中国象棋游戏。它包含了游戏规则、棋盘显示和玩家交互等功能。 进行C语言课程设计时编写小程序代码是一项重要的任务。在开发过程中,请确保遵循良好的编程实践,并注重代码的可读性和效率。同时,在实现功能的同时也要注意程序结构的合理性,以便于后续维护或扩展。如果遇到问题,可以参考相关教材、文档或是向老师和同学求助来解决疑问和技术难题。
  • 基于C++(含
    优质
    这是一款使用C++编程语言开发的中国象棋电脑游戏,提供完整的源代码供学习和研究。适合对游戏开发感兴趣的程序员参考。 这是一款使用Qt和C++开发的中国象棋游戏Windows应用程序。它包含一个名为“LittleBoxChess”的可移植应用程序以及一个名为“Chess”的文件夹(内含整个项目的源代码)。
  • C++
    优质
    这段C++源代码实现了一个中国象棋的游戏程序,包含了棋盘显示、规则判定和人机对弈等功能模块。适合编程爱好者学习与研究。 C++中国象棋游戏源代码制作得非常精致。
  • C语言
    优质
    这段简介描述了一个使用C语言开发的小型国际象棋游戏的完整源代码。该程序旨在为编程学习者提供一个实践和理解基本算法、数据结构以及游戏逻辑设计的机会,适合初学者研究和修改。 国际象棋程序采用C语言编写,用于开发小游戏。该程序展示一个与现实相似的棋盘,并实现人与人之间的对弈功能。它会判断每一步是否符合国际象棋规则,并在游戏结束时判定胜负。
  • C++
    优质
    这段简介是关于用C++编程语言编写的一套完整的中国象棋游戏源代码。它包含了棋盘显示、规则判定和人机对弈等功能模块,适合编程爱好者学习研究。 这段文字描述了一个基于VC++6.0开发平台的益智棋盘游戏项目。该项目集成了丰富的数据算法,并使用MFC图形界面进行开发。代码可供编程爱好者学习参考。
  • C++
    优质
    这是一段用C++编程语言开发的中国象棋程序源代码。该代码实现了中国象棋的基本规则和玩法,并可能包含人机对战、残局研究等功能。 ```cpp #include #include class Chess_ZN { public: void sendBroadcastDatagram(int flag) { peer->sendBroadcastDatagram(flag); } void returnPressed() { QString ss = line[1]->text(); if (ss.trimmed().compare() != 0) { QByteArray byte; QDataStream in(&byte, QIODevice::ReadWrite); in << 15; in << QHostInfo::localHostName(); in << ss; if (radio[0]->isChecked()) { client->write(byte); } else if (radio[1]->isChecked()) { peer->returnUdp()->writeDatagram(byte.data(), byte.size(), QHostAddress(line[0]->text()), 10001); } edit[0]->append(QHostInfo::localHostName() + : \n + ss); line[1]->clear(); } } private: void stopWatch() { if (isTimer) { if (scene->r_or_b == 0) { if (scene->diaitemR[0]->flags() == QGraphicsItem::ItemIsMovable) { label[5]->setText(utf(红方剩余时间为: )); } else { label[5]->setText(utf(黑方剩余时间为: )); } } else { if (scene->diaitemB[0]->flags() == QGraphicsItem::ItemIsMovable) { label[5]->setText(utf(黑方剩余时间为: )); } else { label[5]->setText(utf(红方剩余时间为: )); } } lcd->display(--second); if (second == 0) { scene->whoturn(0); // 按规定时间到即弃权认输 QByteArray byte; QDataStream in(&byte, QIODevice::ReadWrite); in << 17; client->write(byte); initAgain(); QMessageBox::information(this, utf(通知...), utf(不好意思,按规定您已经弃权认输了!!!)); } } } void doWithInfo(int mapValue, QPoint point) { scene->index++; int x = 8 - point.x(); int y = 9 - point.y(); int xl = DiagramScene::xl; int yl = DiagramScene::yl; int xw = DiagramScene::xw; int yh = DiagramScene::yh; if (scene->r_or_b == 0) { if (scene->map[y][x] != 0) { QUndoCommand *deleteCommand = new DeleteCommand(scene->index, scene->map, scene->diaitemR[(scene->map[y][x]) - 20 - 1]); undoStack->push(deleteCommand); } DiagramItem *diagramItem = scene->diaitemB[mapValue - 20 - 1]; int oldx = diagramItem->localX(); int oldy = diagramItem->localY(); scene->diaitemB[mapValue - 20 - 1]->setPos(xl + xw * x, yl + yh * y); undoStack->push(new MoveCommand(scene->index, scene->map, diagramItem, QPointF(xl + xw * oldx, yl + yh * oldy))); } else { if (scene->map[y][x] != 0) { QUndoCommand *deleteCommand = new DeleteCommand(scene->index, scene->map, scene->diaitemB[(scene->map[y][x]) - 20 - 1]); undoStack->push(deleteCommand); } DiagramItem *diagramItem = scene->diaitemR[mapValue - 20 - 1]; int oldx = diagramItem->localX(); int oldy = diagramItem->localY(); scene->diaitemR[mapValue - 20 - 1]->setPos(xl + xw * x, yl + yh * y); undoStack->push(new MoveCommand(scene->index, scene->map, diagramItem, QPointF(xl + xw * oldx, yl + yh * oldy))); } } QString utf(QString s) { QByteArray ba = s.toLatin1(); const char* schar = ba.data(); return QString::fromLocal8Bit(schar); } void initAgain() { for (int i = 0; i < 16; ++i) { scene->removeItem(scene->diaitemB[i]); scene->removeItem(scene->diaitemR[i]); } start = false; second = 120; isTimer =
  • Pygame
    优质
    这段源代码提供了一个基于Python的Pygame库开发的中国象棋游戏实现,适合对编程和中国象棋感兴趣的玩家与开发者研究学习。 Pygame游戏源代码:中国象棋 包含代码、图片、声音等所有资源,可直接运行。
  • Android
    优质
    这段简介可以描述为:“中国象棋的Android游戏源代码”是一款专为中国象棋爱好者设计的开源软件。它包含了开发该款Android游戏的所有源代码,帮助开发者学习和改进中国象棋应用程序的功能与界面设计。 Android游戏中国象棋源代码,导入即可运行。