Skip to content

Variable name, declaration and assignment optimisations, Enum for directions and restart option. #16

@Abductcows

Description

@Abductcows

I'd like to improve the readability of the project and add a restart button

Some examples for the readability part:

ranX= 0 + (int)(Math.random()*19); -> ranX = (int) (Math.random()*19)
directionSnake = 1 -> snakeDirection = Directions.RIGHT
ArrayList<ArrayList<DataOfSquare>> Squares= new ArrayList<ArrayList<DataOfSquare>>(); -> ... = new ArrayList<>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions