go-chess-models, v1.8.1
Posted on

The library that implements checking and generating of chess moves.
Adding the boards.WrapBasePieceStorage function that universally implements the Pieces() and CheckMove() methods of the common.PieceStorage interface if necessary and refactoring.
Change Log
- new features:
- the
boards.WrapBasePieceStoragefunction that universally implements thePieces()andCheckMove()methods of thecommon.PieceStorageinterface if necessary;
- the
- refactoring:
- separate out the following packages:
- separate out the
commonpackage:- move the
chessmodels.Colortype to thecommonpackage; - move the
chessmodels.Kindtype to thecommonpackage; - move the
chessmodels.Positionstructure to thecommonpackage; - move the
chessmodels.Movestructure to thecommonpackage; - move the
chessmodels.CheckMove()function to thecommonpackage; - move the
chessmodels.Sizestructure to thecommonpackage; - move the
chessmodels.Pieceinterface to thecommonpackage; - move the
chessmodels.PieceStorageinterface to thecommonpackage; - move the
chessmodels.Pieces()function to thecommonpackage;
- move the
- separate out the
boardspackage:- move the
chessmodels.BaseBoardstructure to theboardspackage; - move the
chessmodels.MapBoardstructure to theboardspackage; - move the
chessmodels.SliceBoardstructure to theboardspackage;
- move the
- add aliases to the
chessmodelspackage for the moved entities:- mark them as deprecated;
- separate out the
- add the
common.BasePieceStorageinterface; - add the
common.PieceGroupGetterinterface; - add the
common.MoveCheckerinterface;
- separate out the following packages:
- unit testing:
- use the
chessmodels.MockPieceStoragestructure in the tests of thechessmodels.CheckMove()function.
- use the
Repository
Link: https://github.com/thewizardplusplus/go-chess-models/tree/v1.8.1.
Content: code.
License: MIT.