Create Piece: Function to return eligible points
User Story
As a developer, I want to be able to pass in a given piece(location) and dice roll, and have an array of valid points(based on the rules of backgammon) returned, so that I am able to reject invalid moves, as well as give valid move suggestions in future stories.
Acceptance Criteria
Unit testing should pass all edge cases to make sure no crash can occur, and it should be able to detect invalid input.
Dev Notes
The input will be a pice object from which the location is extracted from as well as the dice roll in an int list. Note: you should also consider the blackOnBar/whiteOnBar variables for eligibility of non-bar pieces
- Denis advises against giving suggestions
Edited by Numan Mir