Closed Starlight-30036225 closed 9 months ago
Get possible moves can be abstracted, as it will need to be refined for every single piece type.
I have also created a static factory method inside the bass piece class to create pieces of the correct class. This will help encapsulate piece definition. For now it only returns rooks as i test pieces, but will show when it is completed.
I have defined some early framework for the piece class, this will be stored behind the scenes in the server.
`public class Piece {
} interface Diagonal{}
interface Straight{} `
The two interfaces at the bottom will be used for movement like rooks and bishops, and as a queen just uses a combination of these two it will eliminate any redundant code.