资源简介

用Qt开发,五子棋除基本的两人娱乐,实现了人机对战,相当不错的AI设计。实现了局域网内在线好友大厅的功能,可以查看并邀请一起对战。主要使用UDP实现。此外在局域网内对战使用TCP协议实现。对战可以悔棋,认输等功能。一个完整的一整套项目,在主题上以山上为主,有流水声。希望分享

资源截图

代码片段和文件信息

#include “mainwindow.h“
#include “help.h“
#include “ui_help.h“

Help::Help(QWidget *parent) :
    QWidget(parent)
    ui(new Ui::Help)
{
    ui->setupUi(this);
    this->setWindowtitle(tr(“Help“));
    this->setFixedSize(870520);
    MainWindow *over = new MainWindow;
    over->sound->setLoops(-1);
    over->sound->play();
}

Help::~Help()
{
    delete ui;
}

void Help::on_pushButton_clicked()
{
    MainWindow *windip = new MainWindow;
    windip->show();
    windip->move ((QApplication::desktop()->width() - windip->width())/2
                 (QApplication::desktop()->height() - windip->height())/2);
    this->close();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-05-13 20:46  wuziqi\
     文件    10050044  2014-04-23 16:48  wuziqi\2.wav
     目录           0  2014-05-13 20:46  wuziqi\WuZiQi\
     目录           0  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\
     目录           0  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\
     文件      100182  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\1_res.o
     文件    10050044  2014-04-23 16:48  wuziqi\WuZiQi-build-desktop\debug\2.wav
     文件      255829  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\help.o
     文件      220190  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\main.o
     文件      279775  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\mainwindow.o
     文件        2339  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_help.cpp
     文件      125364  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_help.o
     文件        2925  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_mainwindow.cpp
     文件      225151  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_mainwindow.o
     文件        3172  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_onlion.cpp
     文件      225725  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_onlion.o
     文件        2882  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_peopleandcompter.cpp
     文件      177078  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_peopleandcompter.o
     文件        2867  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_peopleandpeople.cpp
     文件      176725  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\debug\moc_peopleandpeople.o
     文件        2677  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_udpip.cpp
     文件      224235  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\moc_udpip.o
     文件      313002  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\onlion.o
     文件      300922  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\peopleandcompter.o
     文件      293091  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\peopleandpeople.o
     文件    17037410  2014-05-18 22:10  wuziqi\WuZiQi-build-desktop\debug\qrc_image.cpp
     文件     3287923  2014-05-18 22:11  wuziqi\WuZiQi-build-desktop\debug\qrc_image.o
     文件      391787  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\udpip.o
     文件     6522928  2014-05-19 17:24  wuziqi\WuZiQi-build-desktop\debug\WuZiQi.exe
     文件        7711  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\Makefile
     文件       13549  2014-05-13 20:46  wuziqi\WuZiQi-build-desktop\Makefile.Debug
............此处省略47个文件信息

评论

共有 条评论