Age | Commit message (Collapse) | Author |
|
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.
|
|
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".
|
|
|
|
|
|
If the player has NO legal moves display the pass option
|
|
Bug setting assignment instead of comparison. Classic
|
|
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
|
|
|
|
Will score and remove the piece upon moving into the final pos
|
|
|
|
Use board_t for board and prevent illegal placements. And allow for
piece capture
|
|
Since we need to know what "position" a piece is placed in reuse the
piece struct to track the board placement.
|
|
We'll be making a few source files it'll be useful to have them
organized at least somewhat from our non-src files
|