Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Abductcows opened this issue Jan 15, 2021 · 1 comment

Comments

@Abductcows
Copy link

Abductcows commented Jan 15, 2021

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<>();

@Abductcows
Copy link
Author

#18 done, did not add the third part to maybe keep it compatible with older java versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant