文件名称:heibaiqi
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-05-08
- 文件大小:
- 1.26mb
- 下载次数:
- 0次
- 提 供 者:
- 大*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本实验利用嵌入式开发系统设计一个黑白棋的小游戏。采用32位ARM处理器,屏幕上有显示棋格,触摸屏幕落黑子、白子,棋盘设置成8×8正方形结构。该程序用于实现黑白棋游戏双人对战。
设计思路:
1.画出棋盘
2.摆上初始的四颗棋子
3.实现游戏规则
4.边界条件的判定
5.自动提示哪方下棋,并在屏幕上显示相应落子颜色,若一方无路可走,则交换下棋选手,直到双方都无路可走,游戏结束并给出提示,每次落子后,屏幕在终端显示各方棋子数目。
-In this study, embedded development system design a game of Reversi. 32-bit ARM processor, screen display the Checkerboard, touch screen off the sunspots, albino, board set to 8 × 8 square structure. The procedures used to achieve the Double Battle Reversi game.
Design ideas:
1 Draw the chessboard
Put the initial four pawns
3. The rules of the game
4 the determination of the boundary condition
5 automatically prompts which side to play chess, and corresponding Lazi color displayed on the screen, if one party is nowhere to go, exchanging chess players, until both sides have nowhere to go, the game ends and gives tips after each Lazi parties, the screen displayed on the terminal number of pieces.
设计思路:
1.画出棋盘
2.摆上初始的四颗棋子
3.实现游戏规则
4.边界条件的判定
5.自动提示哪方下棋,并在屏幕上显示相应落子颜色,若一方无路可走,则交换下棋选手,直到双方都无路可走,游戏结束并给出提示,每次落子后,屏幕在终端显示各方棋子数目。
-In this study, embedded development system design a game of Reversi. 32-bit ARM processor, screen display the Checkerboard, touch screen off the sunspots, albino, board set to 8 × 8 square structure. The procedures used to achieve the Double Battle Reversi game.
Design ideas:
1 Draw the chessboard
Put the initial four pawns
3. The rules of the game
4 the determination of the boundary condition
5 automatically prompts which side to play chess, and corresponding Lazi color displayed on the screen, if one party is nowhere to go, exchanging chess players, until both sides have nowhere to go, the game ends and gives tips after each Lazi parties, the screen displayed on the terminal number of pieces.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
heibaiqi
........\Exp8触摸屏程序设计
........\..................\Exp8.mcp
........\..................\Exp8_Data
........\..................\.........\CWSettingsWindows.stg
........\..................\.........\Debug
........\..................\.........\.....\TargetDataWindows.tdt
........\..................\.........\Release
........\..................\.........\.......\ObjectCode
........\..................\.........\.......\..........\EXIO.o
........\..................\.........\.......\..........\ISR.o
........\..................\.........\.......\..........\LCD320.o
........\..................\.........\.......\..........\Main.o
........\..................\.........\.......\..........\MyUart.o
........\..................\.........\.......\..........\UHAL.o
........\..................\.........\.......\..........\heap.o
........\..................\.........\.......\..........\isr_address.o
........\..................\.........\.......\..........\memcfg.o
........\..................\.........\.......\..........\option.o
........\..................\.........\.......\..........\retarget.o
........\..................\.........\.......\..........\stack.o
........\..................\.........\.......\..........\tchScr.o
........\..................\.........\.......\TargetDataWindows.tdt
........\..................\STARTUP
........\..................\.......\44B.H
........\..................\.......\44BINIT.S
........\..................\.......\BITOPS.H
........\..................\.......\DEF.H
........\..................\.......\EXIO.c
........\..................\.......\EXIO.h
........\..................\.......\ISR.H
........\..................\.......\ISR.c
........\..................\.......\LCD320.c
........\..................\.......\MEMCFG.S
........\..................\.......\Main.c
........\..................\.......\Maro.h
........\..................\.......\MyUart.c
........\..................\.......\MyUart.h
........\..................\.......\OPTION.H
........\..................\.......\OPTION.S
........\..................\.......\UHAL.c
........\..................\.......\lcd320.h
........\..................\.......\tchScr.c
........\..................\.......\tchScr.h
........\..................\.......\uhal.h
........\..................\init
........\..................\....\heap.s
........\..................\....\isr_address.s
........\..................\....\readme.txt
........\..................\....\retarget.c
........\..................\....\scat_ram.scf
........\..................\....\scat_rom.scf
........\..................\....\stack.s
........\嵌入式实验报告.doc
........\黑白棋
........\......\Exp7.mcp
........\......\Exp7_Data
........\......\.........\CWSettingsWindows.stg
........\......\.........\Debug
........\......\.........\.....\TargetDataWindows.tdt
........\......\.........\Release
........\......\.........\.......\Exp7.axf
........\......\.........\.......\ObjectCode
........\......\.........\.......\..........\44BINIT.o
........\......\.........\.......\..........\EXIO.o
........\......\.........\.......\..........\ISR.o
........\......\.........\.......\..........\LCD320.o
........\......\.........\.......\..........\Main.o
........\......\.........\.......\..........\MyUart.o
........\......\.........\.......\..........\UHAL.o
........\......\.........\.......\..........\heap.o
........\......\.........\.......\..........\isr_address.o
........\......\.........\.......\..........\memcfg.o
........\......\.........\.......\..........\option.o
........\......\.........\.......\..........\retarget.o
........\......\.........\.......\..........\stack.o
........\......\.........\.......\..........\tchScr.o
........\......\.........\.......\TargetDataWindows.tdt
........\......\.........\.......\system.bin
........\......\STARTUP
........\......\.......\44B.H
........\......\.......\44BINIT.S
........\......\.......\BITOPS.H
........\......\.......\DEF.H
........\......\.......\EXIO.c
........\......\.......\EXIO.h
........\......\.......\ISR.H
........\......\.......\ISR.c
........\.