个性化亚马逊棋的界面设计与实现
2017-05-04王晨丁濛
王晨+丁濛



摘 要: 本系统以亚马逊棋游戏作为研究对象,在Windows平台下,运用QT语言编写代码实现了一个具有智能、个性化的人机和人人亚马逊棋博弈系统。该系统的界面设计采用卡通的像素风格,除了具有常规的菜单界面、游戏对战界面外,还设置了行棋记录、悔棋位置显示、棋子运动动画显示等界面,实现了用户可根据自己的爱好调节背景音乐、效果音乐音量大小等功能。实验表明该系统是可行并有效的。
关键词: 个性化;亚马逊棋;界面设计;计算机博弈
中图分类号:TP391
文献标志码:A
文章编号:2095-2163(2017)02-0078-03
Abstract:In this system, the Amazon game is the object of study. Under the platform of Windows,the QT language code is used to realize an intelligent and individualized human-computer and person-person Amazon game system. The interface design of the system adopts the cartoon pixel style. Besides the conventional menu interface and game interface, it also sets the interface of row chess record, regret chess position display and chess movement animation display. Users are able to adjust the background music and volume of the effect music. Experiments contend that the system is feasible and effective.
Keywords:individuation;game of Amazon; interface design; computer game
0 引 言
计算机博弈是人工智能一个传统而重要的研究领域。现今以计算机博弈为代表的人工智能技术在计算机游戏中的应用,极大地提高了游戏的娱乐性,已然成为计算机游戏品级确认的核心保障。计算机博弈系统的界面是系统的外在直观表现,是博弈软件系统和玩家交流的门户语言,所以系统界面设计在整个系统研发中发挥着举足轻重的关键作用。
亚马逊棋是由阿根廷沃尔特Zamkauskas 于1988年发明的双人抽象策略游戏,是圈地游戏家族中的一员,同时与国际象棋也形同远亲。亚马逊棋[1]的棋盘由黑白相间的10*10的方格组成,双方右下角为白色格子。棋子每方有4个棋子。时下通用的行棋规则为:
1)每个棋子都相当于国际象棋中的皇后,其行棋方法与皇后相同,可以在8个方向(上、下、左、右、左上、左下、右上、右下)上任意行走,但不能穿过阻碍;
2)当轮到一方行……
