The 543 game implemented in Crystal
Install & Use
Add the following code to your project's shard.yml under:
to use in production
- OR -
to use in development
This is an implementation of the 543 game in the Crystal language.
The Rules of 543
- There are three rows of pieces. The first row has 5 pieces, the second has 4 pieces, the third has 3 pieces.
- Each player takes turns removing pieces from the board. The player is only allowed to remove one or more pieces from a single row.
- The player that is left with the last piece on the board is the loser.
To run in developement:
crystal run src/543.cr
To build for a release:
crystal build src/543.cr --release
Then to run: