summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-02-12Shorten roll timerStephen Enders
2022-02-12Prevent piece capture on illegal moveStephen Enders
You could capture a piece on a move that was shorter/longer than a valid placement. For example: if you rolled a 2 and there was an enemy piece 1 space away. You could place your token in space 1, remove the enemy piece, but your move wouldn't count as valid and you'd snap back to your original position. By placing the catpure method after the "in_place" we ensure we only remove the enemy piece if its fully valid.
2022-02-12Create win sequenceStephen Enders
You can now win the game when you reach a score of 7 This is proxied simply by "does the player have any remaining pieces to play".
2021-01-29Add verbose loggingStephen Enders
2021-01-29Only allow moves based on position + rollStephen Enders
2021-01-29Allow player to pass when no available movesStephen Enders
If the player has NO legal moves display the pass option
2021-01-29Don't clear all pieces upon captureStephen Enders
Bug setting assignment instead of comparison. Classic
2021-01-29Add icon to the windowStephen Enders
Icon was generated from the .png with ImageMagick's convert convert res/icon.png -define h:format=rgba -size 32x32 src/icon.h Then renaming the array exposed via the header
2021-01-28Reroll on star movesStephen Enders
2021-01-28Score on final positionStephen Enders
Will score and remove the piece upon moving into the final pos
2021-01-28Allow turn passing on 0 rollStephen Enders
2021-01-27Legal placement logic and capturingStephen Enders
Use board_t for board and prevent illegal placements. And allow for piece capture
2021-01-27Move board to use piece_tStephen Enders
Since we need to know what "position" a piece is placed in reuse the piece struct to track the board placement.
2021-01-23Move source files to src folderStephen Enders
We'll be making a few source files it'll be useful to have them organized at least somewhat from our non-src files