Class SnakeGrid
java.lang.Object
com.csse3200.game.minigames.Grid
com.csse3200.game.minigames.snake.SnakeGrid
Represents a specialised grid for the Snake game.
The SnakeGrid has default dimensions and includes methods for snake-specific functionality.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.minigames.Grid
getCell, getHeight, getWidth, isOccupied, setOccupied
-
Constructor Details
-
SnakeGrid
public SnakeGrid()Creates a SnakeGrid with default dimensions. The grid is initialised to a size of 20x20 cells.
-