-
DP32 Processor_Group1 Assignment
DP 32 solved assignment
- 2020-06-25 19:00:02下载
- 积分:1
-
作业
本题编写程序模拟人进行连连看游戏,电脑模拟人玩连连看的过程如下:
1、分析本局游戏,将本局游戏转化成一个二位数组。0表示空白区域,数字表示该游戏牌为出现在游戏中的第几类游戏牌。
2、利用广度优先搜索算法,判断两个游戏牌是否可以消除。
3、程序模拟人点击可以消除的一对游戏牌进行消除。
对某局游戏转化成二维数组如下:
0 0 0 0 0
0 1 2 0 0
0 0 3 4 0
0 0 0 1 0
输入二位数组的行、列,二位数组、起始元素的的坐标、终止元素的坐标,判断起始游戏牌和终止游戏牌是否可以消除。
对上例输入
4 5
0 0 0 0 0 0 1 2 0 0 0 0 3 4 0 0 0 0 1 0
1 1
3 3
输出 TRUE(The writing program simulates the game, and the computer simulates the process of watching the game as follows:
1. Analyze the game and convert the game into a two - bit array. 0 is the blank area, the number indicates that the game card is the number of game cards that appear in the game.
2. Use the breadth first search algorithm to judge whether the two game cards can be eliminated.
3, the program simulates a pair of game cards that can be eliminated by clicking.
A game of a game is transformed into a two-dimensional array as follows:
00000
01200
00340
00010
Input the row and column of the two bit array, the coordinates of two bit array, the initial element, and the coordinates of the termination elements, so as to determine whether the initial game card and the ending game card can be eliminated.
For example input
45
0000001200 0034000010
11
33
Output TRUE)
- 2017-12-17 16:01:15下载
- 积分:1
-
影像导入CAD插件
说明: 插入影像图万千瓦群其味无穷二无群二万千瓦群(Inserted image of 10,000 kilowatt group with infinite flavor and 20,000 kilowatt group)
- 2020-06-18 02:20:02下载
- 积分:1
-
scaner-on-labview86
一个虚拟扫频仪 简单 基于LABVIEW8.6(one frequence scaner on labview86)
- 2012-03-06 21:21:02下载
- 积分:1
-
JXC
使用方法重载来计算三角形,长方形和圆形的面积。给三维向量的加法设计运算符重载并测试结果(Use method overload to calculate the area of triangle, rectangle and circle. Overload the additive design operators for three-dimensional vectors and test the results)
- 2020-06-25 01:40:01下载
- 积分:1
-
UUID_for_C
UUID算法的完全实现,很不好找的,很有用给大家分享!(UUID algorithm for the complete implementation, it is不好找, and very useful to everyone to share!)
- 2009-03-19 19:35:32下载
- 积分:1
-
使用 UART 使用 pic16f877a
PIC16F/18F 初级板
PIC16F/18F 初级板被专门来帮助学生掌握所需的技能在嵌入式系统领域
- 2022-02-13 16:49:38下载
- 积分:1
-
Kirchoff
说明: 实现kirchoff偏移的matlab程序计算时间约为40s,请耐心等待.(The matlab program that implements the kirchoff offset has a computation time of about 40s. Please be patient.)
- 2019-03-25 19:48:43下载
- 积分:1
-
TMS320F28034程序设计
此段程序是实现TMS320F28034程序设计中的DAC转换的程序代码 适合电机控制
- 2022-03-03 18:25:41下载
- 积分:1
-
数据结构
合肥工业大学数据结构课件
非常基础
适合入门(Data Structure Courseware of Hefei University of Technology
Very basic
Suitable for entry)
- 2020-06-20 21:20:02下载
- 积分:1