1 Star 0 Fork 0

CS-IMIS-23/20172306

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MazeTester.java 741 Bytes
一键复制 编辑 原始数据 按行查看 历史
20172306 提交于 7年前 . 第四章中4.3的例子
package wek1;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class MazeTester {
public static void main(String[] args) throws FileNotFoundException {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the name of the file containing the maze:");
String filename = scanner.nextLine() ;
Maze labyrinth = new Maze(filename);
System.out.println(labyrinth);
MazeSolver solver = new MazeSolver(labyrinth);
if(solver .traverse() ) {
System.out.println("the maze was successfully traversed");
} else {
System.out.println("there is no possible path.");
}
System.out.println(labyrinth);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/20172306.git
git@gitee.com:CS-IMIS-23/20172306.git
CS-IMIS-23
20172306
20172306
master

搜索帮助