计 算 机 与 现 代 化
2016年第 3期 JISUANJIYUXIANDAIHUA 总第247期
文章编号 :1006-4275(2016)03-0096-04
点格棋计算机博弈平台通信接 口
张利群 ,曹 杨 ,李 厦
(1.辽宁石油化工大学计算机与通信工程学院,辽宁 抚顺 113001;2.抚顺市图书馆技术部 ,辽宁 抚顺 113006)
摘要:针对传统计算机博弈方式存在的不足 ,构建点格棋计算机博弈平台。将点格棋计算机博弈平台和博弈程序客户端
置于网络环境 中,通过博弈平台中的通信接 口模块完成各种信息的传送,实现博弈平台与博弈程序之间的信息交互,进
而达到对博弈双方的控制,实现 自动博弈。实验结果表明这种通信接 口的设计安全可靠,通信性能好。
关键词 :博弈;平台;协议;接口
中图分类号:TP393 文献标识码:A doi:10.3969/j.issn.1006-2475.2016.03.019
Communication InterfaceofDotsandBoxesBattlePlatform inComputerGame
ZHANG Li.qun ,CAO Yang ,LISha
(1.SchoolofComputerandCommunicationEngineering,LiaoningShihuaUniversity,Fushun113001,China;
2.TechnologyDepartment,FushunCityLibrary,Fushun113006,China)
Abstract:Inviewofthedeficienciesoftraditionalcomputergames,adotsandboxesbattleplatform incomputergamewasbuilt.
Thedotsandboxesbattleplatfomr incomputergameandtheclientsofcomputergameprogram areplacedinnetworkenviron—
ment.Th etransmissionofallkindsof informationisthroughthecommunicationinterfacemoduleofthebattleplatform incomput—
ergametoachievetheinfomr ationinteractionbetweenthebattleplatfomr andgameprograms,therebycontrollingbothsidesofthe
gameprorgamsandrealizingtheautomaticgame.Testresultsshowthatthedesignofthiscommunicationinterfaceissafe,reliable
andhavingagoodcommunicationperfomr ance.
Keywords:game;plaftorm ;protocol;interface
3)软件重复开发。
0 引 言
如何克服这些弊端,道路只有一条,就是使用计
近年来 ,全国大学生计算机博弈大赛及全国计算 算机网络博弈平台。
机博弈锦标赛开展得越来越好,参赛的院校、社会团
体和个人越来越多,竞赛队伍的数量也逐年上升,竞 1 点格棋简介
赛棋种也在逐年增加。特别是2015年全国大学生计 点格棋又称为点点连格棋,是国际计算机奥林匹克
算机博弈大赛和第九届全国计算机博弈锦标赛被列 竞赛棋种,也是全国大学生计算机博弈大赛竞赛棋种。
入第三届全国智力运动会 ,共有点格棋等 l7种比