李若龙 2018171028 a grapic demo of XiaoXiaoLe algorithm(dfs) 消消乐算法的图形演示,回溯法(深度优先搜索),效果如下
ps : 每次选择前3大的分支进行搜索
样例输入:你应该输入 8 * 4 的矩阵,矩阵内容表示方块颜色
sample input : you shuold input a 8 * 4 matrix , elements of the mat repersent blocks with different color
3 3 4 3
3 2 3 3
2 4 3 4
1 3 4 3
3 3 1 1
3 4 3 3
1 4 4 3
1 2 3 2