mirror of
https://gitee.com/yyz_o/bk_bishe_pi.git
synced 2025-09-07 23:21:26 +00:00
2025.5.31第一次提交优化代码结构,头文件等
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include<string>
|
||||
#include<vector>
|
||||
#include<cstddef>
|
||||
#include<cstdlib>
|
||||
#include"eyebot++.h"
|
||||
#include"maze_parameter.h"
|
||||
#include"maze_func.h"
|
||||
@@ -117,6 +118,7 @@ void maze_entry(int x, int y, int dir, int open)
|
||||
else
|
||||
{
|
||||
cout << "error: mark or wall empty" << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
wall[x][y+1][0] = !open;
|
||||
@@ -141,6 +143,7 @@ void maze_entry(int x, int y, int dir, int open)
|
||||
else
|
||||
{
|
||||
cout << "error: mark or wall empty" << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
wall[x][y][1] = !open;
|
||||
@@ -165,6 +168,7 @@ void maze_entry(int x, int y, int dir, int open)
|
||||
else
|
||||
{
|
||||
cout << "error: mark or wall empty" << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
wall[x][y][0] = !open;
|
||||
@@ -181,6 +185,7 @@ void maze_entry(int x, int y, int dir, int open)
|
||||
else
|
||||
{
|
||||
cout << "error: mark or wall empty" << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
wall[x+1][y][1] = !open;
|
||||
|
||||
Reference in New Issue
Block a user