Shard Detail

543-crystal v0.1.0

The 543 game implemented in Crystal

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


543-crystal:
  github: alexbrinkman/543-crystal

Readme

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.

Usage

To run in developement: crystal run src/543.cr

To build for a release: crystal build src/543.cr --release

Then to run: ./543

Contributors

Alex Brinkman: