Snake game in Java, NO GUI INVOLVED
Needs:
Snake.java
Food.java
Wall.java
Maze.java
The code will need to be able to parse maze specification filespassed into it, e.g., as command-line arguments to the final gameprogram.
In other words, you may assume that the files are formatted asfollows:
• Line 1: two positive integers specifying width and height ofthe game area (in squares)
• Lines 2 and beyond: four non-negative integers specifyingrectangular areas of “wall”.
Maze specification example 1:
Game.java
Store
OR
OR