Greetings! Thank you for your efforts. Here are some suggestions for the chess class.
How about let's Integrate x, y into a class called location? It is not meaningless, cause we can try to put operations on vertical/horizontal displacement there, and some other arithmetic operations there and in a move class. Do you think it can improve readability?
refer to 1. https://github.com/zli117/Chess-Game/blob/master/src/main/java/utils/Location.java
cc. @gzlzgzl
Greetings! Thank you for your efforts. Here are some suggestions for the chess class.
How about let's Integrate x, y into a class called location? It is not meaningless, cause we can try to put operations on vertical/horizontal displacement there, and some other arithmetic operations there and in a move class. Do you think it can improve readability? refer to 1. https://github.com/zli117/Chess-Game/blob/master/src/main/java/utils/Location.java
Welcome to discuss here :D
Cheers! Anthony