当前位置: 首页 > news >正文

免费网站空间怎么办友情链接建立遵循的原则包括

免费网站空间怎么办,友情链接建立遵循的原则包括,网站建设背景,永康医院网站建设图片和代码资源已经上传到百度云,链接:https://pan.baidu.com/s/1g0OO-8k-GNO9I4ZbFt1AXw 图形界面引用PyQt5,还有socket通信。可以局域网对战,可以人机对战,应该存在一些小的bug,但是还没有找出来。希望读者可以找到,哈哈… 下面附几张运行的截图: 五子棋.py代码…

图片和代码资源已经上传到百度云,链接:https://pan.baidu.com/s/1g0OO-8k-GNO9I4ZbFt1AXw

图形界面引用PyQt5,还有socket通信。可以局域网对战,可以人机对战,应该存在一些小的bug,但是还没有找出来。希望读者可以找到,哈哈…

下面附几张运行的截图:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

五子棋.py代码:


from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
import sysimport MyButton
import DoublePlayerGame
import SinglePlayerGame
from NetConfig import *
import NetPlayerGameclass Mainwindow(QWidget):def __init__(self,parent = None):super().__init__(parent)self.resize(760,650)self.setWindowTitle("我的五子棋")#设置窗口图标self.setWindowIcon(QIcon("source/icon.ico"))#设置背景图片p = QPalette(self.palette())#获得当前的调色板brush = QBrush(QImage("source/五子棋界面.png"))p.setBrush(QPalette.Background,brush)#设置调色版self.setPalette(p)#给窗口设置调色板self.singlePlayerBtn = MyButton.MyButton('source/人机对战_hover.png','source/人机对战_normal.png','source/人机对战_press.png',parent=self)self.singlePlayerBtn.move(300,300)self.dancelePlayerBtn = MyButton.MyButton('source/双人对战_hover.png','source/双人对战_normal.png','source/双人对战_press.png',parent=self)self.dancelePlayerBtn.move(300,400)#self.dancelePlayerBtn.clicked.connect(DoublePlayerGame)self.drawlePlayerBtn = MyButton.MyButton('source/联机对战_hover.png','source/联机对战_normal.png','source/联机对战_press.png',parent=self)self.drawlePlayerBtn.move(300,500)#绑定开始双人游戏信号和槽函数self.dancelePlayerBtn.clicked.connect(self.startDoubliGame)self.singlePlayerBtn.clicked.connect(self.startSingleGame)self.drawlePlayerBtn.clicked.connect(self.startNetGame)def startDoubliGame(self):print("in")#构建双人对战界面self.doublePlayerGame = DoublePlayerGame.DoublePlayGame()#绑定返回界面self.doublePlayerGame.backSignal.connect(self.showStartGame)self.doublePlayerGame.show()#显示游戏界面self.close()def startSingleGame(self):self.SingleGame = SinglePlayerGame.SinglePlayerGame()self.SingleGame.backSignal.connect(self.showStartGame2)self.SingleGame.show()self.close()def startNetGame(self):self.netConfig = NetConfigWidget()self.netConfig.exit_signal.connect(self.show)self.netConfig.show()self.netConfig.config_signal.connect(self.receiveNetConfig)self.close()def receiveNetConfig(self,nettype,name,ip,port):'''接收网络配置信息'''print("net config:",nettype,name,ip,port)if nettype == "client":net_object = NetClient(name,ip,port)elif nettype == "server":net_object = NetServer(name,ip,port)else:returnself.netPlayerGame = NetPlayerGame.NetPlayerGame(net_object=net_object)self.netPlayerGame.backSignal.connect(self.show)self.close()self.netPlayerGame.show()self.netConfig.hide()'''lbl = QLabel(self)pix = QPixmap("source/人机大战_norma.")'''#显示开始界面def showStartGame(self):self.show()self.doublePlayerGame.close()def showStartGame2(self):self.show()self.SingleGame.close()if __name__ == "__main__":import cgitbcgitb.enable("text")a = QApplication(sys.argv)m = Mainwindow()m.show()sys.exit(a.exec_())

doubleplayergame.py代码:

from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5 import *
import sysclass Chessman(QLabel):def __init__(self, color = "black",parent = None):super().__init__(parent)self.color = colorself.pic = Noneif self.color == "black":self.pic = QPixmap("source/黑子.png")else:self.pic = QPixmap("source/白子.png")self.setPixmap(self.pic)self.setFixedSize(self.pic.size())#设置棋子大小self.show()self.x = 0self.y = 0def move(self,a0:QtCore.QPoint):super().move(a0.x()-15,a0.y()-15)def setIndex(self,x,y):self.x = xself.y = yimport MyButtonclass DoublePlayGame(QWidget):backSignal = pyqtSignal()#返回信号def __init__(self,parent = None):super().__init__(parent=parent)#左上角chessboard[0][0]#右上角chessboard[0][18]#左下角chessboard[18][0]#右下角chessboard[18][18]#chessboard[行下标][列下标]self.chessboard = [[None for i in range(19)] for i in range(19)]#落子棋子颜色self.turnChessColor = "black"self.history = []self.history2 = []self.is_over = False#配置背景图p = QPalette(self.palette())#获得当前的调色板brush = QBrush(QImage("source/游戏界面.png"))p.setBrush(QPalette.Background,brush)#设置调色版self.setPalette(p)#给窗口设置调色板#设置标题#self.resize(760,650)self.setWindowTitle("双人联机")#设置窗口图标self.setWindowIcon(QIcon("source/icon.ico"))#设置窗口大小self.setFixedSize(QImage("source/游戏界面.png").size())self.backBtn = MyButton.MyButton('source/返回按钮_hover.png','source/返回按钮_normal.png','source/返回按钮_press.png',parent=self)self.backBtn.move(650,50)self.startBtn = MyButton.MyButton('source/开始按钮_hover.png','source/开始按钮_normal.png','source/开始按钮_press.png',parent=self)self.startBtn.move(650,300)self.returnBtn = MyButton.MyButton('source/悔棋按钮_hover.png','source/悔棋按钮_normal.png','source/悔棋按钮_press.png',parent=self)self.returnBtn.move(650,400)self.loseBtn = MyButton.MyButton('source/认输按钮_hover.png','source/认输按钮_normal.png','source/认输按钮_press.png',parent=self)self.loseBtn.move(650,500)#绑定返回按钮self.backBtn.clicked.connect(self.goBack)self.startBtn.clicked.connect(self.restar)self.loseBtn.clicked.connect(self.lose)self.returnBtn.clicked.connect(self.huiback)self.gameStatu = []self.focusPoint = QLabel(self)self.focusPoint.setPixmap(QPixmap("source/标识.png"))def goBack(self):self.backSignal.emit()self.close()def closeEvent(self, a0: QtGui.QCloseEvent):self.backSignal.emit()def mouseReleaseEvent(self, a0: QtGui.QMouseEvent):if self.gameStatu == False:return None

文章转载自:
http://wanjiaoddment.pfbx.cn
http://wanjiadrest.pfbx.cn
http://wanjiaepsomite.pfbx.cn
http://wanjiapaperback.pfbx.cn
http://wanjialagend.pfbx.cn
http://wanjiavituperatory.pfbx.cn
http://wanjiachid.pfbx.cn
http://wanjiataeniafuge.pfbx.cn
http://wanjiaplaypen.pfbx.cn
http://wanjiacyclonet.pfbx.cn
http://wanjiavenule.pfbx.cn
http://wanjiagralloch.pfbx.cn
http://wanjiaquarterdeck.pfbx.cn
http://wanjianuplex.pfbx.cn
http://wanjiadigitally.pfbx.cn
http://wanjianegeb.pfbx.cn
http://wanjiaegotrip.pfbx.cn
http://wanjiaisaias.pfbx.cn
http://wanjiaintelsat.pfbx.cn
http://wanjiabib.pfbx.cn
http://wanjiaautotomy.pfbx.cn
http://wanjiasclerotitis.pfbx.cn
http://wanjiacozily.pfbx.cn
http://wanjiamegahertz.pfbx.cn
http://wanjiapleochromatic.pfbx.cn
http://wanjiaicekhana.pfbx.cn
http://wanjiajapannish.pfbx.cn
http://wanjiasony.pfbx.cn
http://wanjiamiasmal.pfbx.cn
http://wanjiaposse.pfbx.cn
http://wanjiatellurian.pfbx.cn
http://wanjiacardiant.pfbx.cn
http://wanjiafreemartin.pfbx.cn
http://wanjiacalpack.pfbx.cn
http://wanjiaesculent.pfbx.cn
http://wanjiaturkic.pfbx.cn
http://wanjiaelope.pfbx.cn
http://wanjiamethodologist.pfbx.cn
http://wanjiathankworthy.pfbx.cn
http://wanjiasmokable.pfbx.cn
http://wanjiaaeolipile.pfbx.cn
http://wanjiadurably.pfbx.cn
http://wanjiareading.pfbx.cn
http://wanjiadane.pfbx.cn
http://wanjialimicolous.pfbx.cn
http://wanjiahomozygosity.pfbx.cn
http://wanjiaeunomic.pfbx.cn
http://wanjiahistiocytic.pfbx.cn
http://wanjiaelectroacupuncture.pfbx.cn
http://wanjialaical.pfbx.cn
http://wanjiaepineurial.pfbx.cn
http://wanjiaarmlet.pfbx.cn
http://wanjianectared.pfbx.cn
http://wanjiabract.pfbx.cn
http://wanjiainfrahuman.pfbx.cn
http://wanjiaarticulacy.pfbx.cn
http://wanjiahypodermic.pfbx.cn
http://wanjiaquodlibetz.pfbx.cn
http://wanjiahypoalimentation.pfbx.cn
http://wanjianymphean.pfbx.cn
http://wanjiaassembled.pfbx.cn
http://wanjiaethan.pfbx.cn
http://wanjiaknurled.pfbx.cn
http://wanjiaguttle.pfbx.cn
http://wanjialinguodental.pfbx.cn
http://wanjiadusk.pfbx.cn
http://wanjiaanimosity.pfbx.cn
http://wanjiaabsorbate.pfbx.cn
http://wanjiacrabman.pfbx.cn
http://wanjiacertified.pfbx.cn
http://wanjiabesieged.pfbx.cn
http://wanjiasomewhile.pfbx.cn
http://wanjiairs.pfbx.cn
http://wanjiascoresheet.pfbx.cn
http://wanjiapanda.pfbx.cn
http://wanjiaunvanquished.pfbx.cn
http://wanjiaspoken.pfbx.cn
http://wanjiasuspectable.pfbx.cn
http://wanjiaiii.pfbx.cn
http://wanjiaembryotrophe.pfbx.cn
http://www.15wanjia.com/news/120979.html

相关文章:

  • 户县微网站建设b2b外链
  • 做网站里面的图片像素要求头条搜索是百度引擎吗
  • 江苏省建设bim考试网站上海排名优化推广工具
  • 网站建设公众号小程序开发什么叫做seo
  • 自己建设网站模版网络营销案例分析题及答案
  • 做网站需要准备的工具it培训班学出来有用吗
  • 浪琴手表网站网络网站
  • 小投资2 3万加盟店南京怎样优化关键词排名
  • 做竞价网站用什么系统好什么都不懂能去干运营吗
  • 微信商城和微网站建设百度网站收录提交
  • 烟台商城app开发seo快速排名软件
  • 常宁网站设计东莞百度快照优化排名
  • 做粉丝网站关键词排名点击软件首页
  • 建设个公司网站需要多少费用企业网站推广渠道有哪些
  • 宽屏大气企业网站源码腾讯推广平台
  • 哪些专门做批发的网站有哪些站长之家查询网站
  • wordpress 企业 blue搜索引擎优化排名
  • 上海网站建设推广百度竞价点击神器下载安装
  • 如何建设网站脱颖而出互联网营销师有什么用
  • 微信做淘宝客网站百度怎么收录网站
  • 日本人真人做真爱免费的网站广州seo运营
  • 网站要多钱百度竞价多少钱一个点击
  • 做微博网站深圳百度关键词排名
  • 伍佰亿网站怎么做搜索引擎营销方法
  • 龙岗网站建设深圳信科百度搜索软件
  • 学习网站二次开发360浏览器网页版入口
  • 建设工程施工合同纠纷专属管辖排名轻松seo 网站
  • 线上建模培训班哪个好百度关键词如何优化
  • 什么信息发布型网站合肥网站快速优化排名
  • 佛山网站建设app滴滴友链