提交 15ba5a7f 编写于 作者: M manjaro

改进了符号的美观

上级 6822d535
......@@ -24,7 +24,7 @@ int main(int /*argc*/, char * /*argv*/[])
//0,1联通矩阵,0是障碍,1是可通区域
vector<vector<char> > v_mat;
const int rows = 12, cols=32;
const int rows = 24, cols=32;
for (int i=0;i<rows;++i)
{
vector<char> v_row;
......@@ -80,7 +80,7 @@ int main(int /*argc*/, char * /*argv*/[])
else if (disp[i][j] >=2)
printf ("%02X",(unsigned int)(disp[i][j]-2) % 0xFFu);
else if (disp[i][j] == -1)
cout << "[]";
cout << ". ";
else if (disp[i][j] == -2)
cout << "SS";
else if (disp[i][j] == -3)
......@@ -252,7 +252,7 @@ int min_dis_opt(
for (int i=0;i<maxp && good;++i)
{
//为不打擦边球,要求周围1格子也没有障碍才能优化。
for (int d = 0; d< 5 && good; ++d)
for (int d = 0; d< 9 && good; ++d)
{
const int rev_dirt[9][2] = {
{0,0},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册