摘要
Matlab是国际上使用最为广泛的科学与工程计算软件工具。与VC等其他编程语言相比,Matlab的GUI(Graphics User Interface,图形用户接口)设计同样采用了面向对象的技术,但Matlab具有强大、丰富的内置函数和工具箱,界面设计时更加简洁、快捷与直观。在简要介绍扫雷游戏核心算法的基础上,给出一种基于Matlab GUI的能安装且能独立运行的扫雷游戏的设计与实现方法,并在Matlab 7.1和Windows XP SP2操作系统下成功实现,经过实验测试,结果正确,各项功能达到游戏要求。该实现方法对其他基于Matlab的游戏开发起到抛砖引玉的作用,同时对各专业人员借助Matlab语言快速开发出具备强大计算功能的专业应用软件具有重要的意义。
Matlab is the most popular scientific and engineering computation tool. Comparing to other programming language, Matlab GUI is also object -oriented, but it has powerful built -in functions and toolbox. It is more simple, faster and intuitive when interface design using Matlab GUI. Core algorithm of mine- sweeping games, design and realization method of installable and stand - alone mine - sweeping games based on Matlab GUI is presented. This game is realized on the Matlab 7.1 and Windows XP SP2. It proves that results are correct and all functions satisfy game requirements. This realization method contributes to other game developing based on Matlab, and it is valuable to help the professionals develop applications software possessing high - performance for computing based on Matlab quickly.
出处
《现代电子技术》
2008年第24期85-88,共4页
Modern Electronics Technique