Bug 594

Summary: Eclipse cannot find a filepath
Product: Group14-Pacman Reporter: Aleksa <ajelaca2-c>
Component: GameAssignee: Omar MOUSTAFA <omoustafa2-c>
Status: RESOLVED FIXED    
Severity: major CC: tianxyang3-c
Priority: High    
Version: 0.0.2   
Hardware: PC   
OS: Windows   

Description Aleksa 2021-11-21 00:57:41 HKT
I ran Main.java and expected to see a console output with a maze, PacMan and ghosts. Instead I got a Java Exception that Eclipse could not find a file path in which we stored our maze. This is the actual output:

java.io.FileNotFoundException: src\Resource\easyGhostData.txt (The system cannot find the file specified)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
	at java.base/java.util.Scanner.<init>(Scanner.java:639)
	at Game.Ghost.initGhosts(Ghost.java:18)
	at Game.Game.gameInit(Game.java:25)
	at Game.Main.main(Main.java:7)
java.io.FileNotFoundException: src\Resource\easyPacMandata.txt (The system cannot find the file specified)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
	at java.base/java.util.Scanner.<init>(Scanner.java:639)
	at Game.PacMan.initPacMan(PacMan.java:27)
	at Game.Game.gameInit(Game.java:26)
	at Game.Main.main(Main.java:7)
java.io.FileNotFoundException: src\Resource\easyAlgorithmData.txt (The system cannot find the file specified)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
Comment 1 Aleksa 2021-11-21 00:59:28 HKT
I saw that the minor mistake was that we initialized our Game.java with difficulty Easy, but only prepared files for difficulty Medium. Medium is set to be the new difficulty. It is fixed now.