Library to handle a deck of cards
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Andy Alt 1161685f0e
refactor shuffling algorithm (#6)
5 days ago
swig meson.build (fix): change scope of 'dep' 1 week ago
.gitignore .gitignore:add swig files 1 year ago
.travis.yml .travis.yml 1 week ago
AUTHORS.md update docs 1 year ago
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md:initial commit 1 year ago
CONTRIBUTING.md CONTRIBUTING.md:initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md README.md: migrate to travis-ci.com [skip ci] 1 week ago
SWIG_INTERFACE.md separate dir for swig meson.build, make conditional, add "swig_lang" option 1 year ago
deckhandler.c refactor shuffling algorithm (#6) 5 days ago
deckhandler.h meson.build:add `-fno-common` to build flags, 1 month ago
example-01.c bugfix:change when variable increments 1 year ago
example_01_output.txt example_01_output.txt:created 1 year ago
meson.build meson.build:add `-fno-common` to build flags, 1 month ago
meson_options.txt separate dir for swig meson.build, make conditional, add "swig_lang" option 1 year ago

README.md

Build Status

deckhandler

Library that will create a deck of cards and shuffle it.

Two functions are included:

deck_init_dh: initialize a deck
deck_shuffle_dh: shuffle the deck
get_card_face: get the "face" of a card
get_card_suit: get the suit of a card

Detailed example usage can be seen in example-01.c and aa-pokerhands

Dependencies

  • meson (for the build system)

Building

meson builddir
cd builddir
ninja

That will build the library, create the example-01 executable and then link to the library.

Installation

To specify the installation directory (defaults to /usr/local) and install the program:

From *builddir*: `meson configure --prefix=
ninja install

To uninstall:

ninja uninstall

Projects that use deckhandler

Using the library with other languages

See SWIG_INTERFACE.md