Skip to content

Python library for experimenting with the game of cribbage

License

Notifications You must be signed in to change notification settings

wroberts/cribbage

Repository files navigation

Cribbage

https://travis-ci.org/wroberts/cribbage.svg?branch=master https://coveralls.io/repos/wroberts/cribbage/badge.svg?branch=master

Python library for experimenting with the game of cribbage.

C Extension

There is a C function which can score a cribbage hand 100 times faster than doing it in pure Python.

To compile the Cython extension:

python setup.py build_ext --inplace

Then:

from cribbage import _cribbage_score
_cribbage_score.score_hand(hand, draw)

Testing

In the base directory of the project, do:

py.test

References

  1. Mnih, Volodymyr, et al. Human-level control through deep reinforcement learning. Nature 518, no. 7540 (2015): 529-533.
  2. van Hasselt, Hado. Double Q-learning. Poster at Advances in Neural Information Processing Systems 23 (NIPS 2010), Vancouver, British Columbia, Canada.

Links

About

Python library for experimenting with the game of cribbage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published