This commit is contained in:
氧原子
2025-04-25 14:33:54 +08:00
parent 5f0d0c5437
commit 6c7fde5740
10 changed files with 582 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
#include<iostream>
#include<string>
#include"eyebot++.h"
#include"maze_func.h"
#include"maze_parameter.h"
using namespace std;
/*---打印数组检查错误---*/
/*---打印数组mark---*/
void output_mark()
{
for (int i = 5; i >= 0; i--)
{
for (int j = 0; j < 6; j++)
{
cout << mark[j][i] ;
}
cout << endl;
}
}
/*---打印数组wall---*/
void output_wall()
{
for (int i = 6; i >= 0; i--)
{
for (int j = 0; j < 7; j++)
{
if (wall[j][i][1] == 1)
{
cout << "|" ;
}
else
{
cout << " " ;
}
if (wall[j][i][0] == 1)
{
cout << "_" ;
}
else
{
cout << " " ;
}
}
cout << endl;
}
}
/*---打印数组map---*/