543-crystal

Version, currently master branch1 version
  • master branchlatestDec 10, 2018

github.com/alexbrinkman/543-crystal

The 543 game implemented in Crystal

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  543-crystal:
    github: alexbrinkman/543-crystal
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.27.0
License
MIT
Author
Alex Brinkman
Target
  • 543-crystal from src/543-crystal.cr

Dependencies

This version declares no dependencies.

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: