Reference no: EM132161776
Please read the attached file to modify an existing project so that it does not contain any errors
The solution for assignment two has a couple of problems:
- When you hover over the Rabbit, the game freezes.
- The Wolf is not behaving as we would like. If we ask the wolf to calculate it's path twice it works, but not if we ask it to do so only once.
Your job is to:
- fix these problems
- describe your solution to each problem
Once that is done, you are asked to check if your solution works as the game scales. A solution works as the game scales if the game remains responsive as the grid size grows and character locations move further apart, no character may have to wait for another to finish calculating their path before calculating theirs. If not, you must come up with a new solution that does. Your solution should not rely on faster path-finding - it must be purely based on safe multi-threading. If your solution does already work for a larger game, then you must still come up with another solution - try some other multi-threading feature.
Your solution to assignment two might never have had these problems. You must still work from the starting point we have given you. You might find you can get some insight into the problem by comparing our solution to yours, but you still have to build an answer from our code.
Note: Fixing the problem is very easy if you know where to look, thus we have allocated a significant proportion of the marks to your explanations.
You should submit a zip file containing:
- BUGS.md which contains your explanations of the rabbit and wolf bugs
- SOLUTION_ONE.md which contains a description of your first solution to the wolf bug
- solution_one folder which contains a full IntelliJ project that includes your implementation of your first solution
- SOLUTION_TWO.md which contains a description of your second solution to the wolf bug - the solution that will scale.
- solution_two folder which contains a full IntelliJ project that includes your implementation of your second solution.
- will be awarded if either IntelliJ project includes a solution to the rabbit bug.
Attachment:- Assignment.rar