java中一个迷宫的程序填空问题,各位帮帮忙啊
发布网友
发布时间:2023-07-14 02:16
我来回答
共1个回答
热心网友
时间:2023-10-05 09:24
第一个空 new Cell(a.row, a.col+1, a);
第二个空 dest.add(new Cell(c[i].row, c[i].col, a));
第三个空 a=a.from;
下面是运行结果
# # # # B # # # # # # #
# # # # . . . . # # # #
# # # # . # # # # . . #
# . . . . # # # # # . #
# . # # # # # . # # . #
# . # # # # # . # # . #
# . # # . . . . . . . #
# . # # . # # # . # . #
# . . . . # # # . # . #
# # . # . # # # . # . A
# # . # # # . . . # # #
# # # # # # # # # # # #
找到解!
# # # # B # # # # # # #
# # # # + . . . # # # #
# # # # + # # # # ? ? #
# + + + + # # # # # ? #
# + # # # # # ? # # ? #
# + # # # # # ? # # ? #
# + # # + + + + + + + #
# + # # + # # # ? # + #
# + + + + # # # ? # + #
# # ? # ? # # # ? # + +
# # ? # # # ? ? ? # # #
# # # # # # # # # # # #