refactor all friendliness and values to values. And refactor all references to players or persons to one word. IMO it should be players but IDK why we started with persons...?
clean code meaning the things I learned in uni:
operations don't return anything.
functions return something but don't change anything about the class.
functions return final objects unless they shouldn't be.
methods are maximum about 10 lines long
everything is final that shouldn't be changed (like every parameter)
description for every method
names that explain themself
max letters per line
maybe requirements and ensures for every method
maybe class requirements for every class
maybe loop requirements for every loop
feel free to add points or discuss their importance :)
refactor all friendliness and values to values. And refactor all references to players or persons to one word. IMO it should be players but IDK why we started with persons...?
clean code meaning the things I learned in uni:
feel free to add points or discuss their importance :)