Handler
Handler <- ()
Handler <- FEN
move -> Handler::Response
promotePawn -> Handler::Response
getActionsPlaces -> ActionsPlaces
getHistoryMoves -> HistoryMoves
getMaxPositionCount -> int
getPositionCounts -> std::unordered_map<std::string, int>
getState -> State
Handler::Response
Handler::Response <- Handler::Response::Status
status -> Handler::Response::Status
isOk -> bool
Contains main logic to works with chess position and piece moves
Moves piece by two points
Select pawn promotion piece type
Get current action places
Get current state
Get current history moves
Get current position to repeats count map
Get current max position repeats count
Creates handler instance by arbitrary FEN position
Creates handler instance by FEN::INITIAL_POSITION
Handler interaction response
Response status, enum value
Returns true if response status equals to Handler::Response::Status::OK
Creates response instance by status
Handler interaction response status
- OK
- INVALID_POINT
- PIECE_DOES_NOT_EXIST
- WRONG_PIECE_COLOR
- WRONG_DESTINATION
- WRONG_PAWN_PROMOTION
- WRONG_PAWN_PROMOTION_PIECE_TYPE
- RESULT_REACHED