三匹狼2005-11-23 14:57:42
用JAVA做一个关于,寻找迷宫出路的游戏。输入包含有迷宫的文本。
程序名maze.java, 文本名"myMaze.txt" . 输入的文本例子:

3 3
xxx
x..
xxx
1 1
第一个“3” 代表纵轴的大小, 第二个人“3”代表横轴的大小。
最后一行的“1”代表"开使点"在纵轴的位置,第二个“1”"代表"开始点"在横轴的位置。
(dein the starting point:
The first number is position in vertical direction, counted from top to bottom,
where the top line has number0; the second number is a position in horizontal direction
also counted from zero. hence in the above case the starting position is exactly in the
middle of the maze.)


" x " 代表-墙
" . " 代表通过。
單身老貓2005-11-23 16:54:49
這是學校的作業,對不對 !
basic72432005-11-23 19:18:28
回复:求助!各位电脑编程高手帮忙!谢谢
641122005-11-25 05:57:52
回复:求助!各位电脑编程高手帮忙!谢谢