This package provides the Blackjack card game for your Emacs text editor.
If you use use-package:
Assuming you have MELPA configured, you can add a new entry to your .emacs or init.el:
(use-package blackjack
:ensure t)
Download and load blackjack.el in your .emacs or init.el:
(load "~/path/to/blackjack.el")
Once installed you can run the game like this:
M-x blackjack
Comands make test
and make test-coverage
are convenience commands available. Tests are written using Buttercup. Test coverage is generated using undercover. Both packages are available from MELPA.
You will need to install Ruby and Simplecov for test coverage to build.
If you run out of money, delete blackjack.txt
and restart blackjack. You will get a free $100 for another try.
Please report any bugs or issues you find:
https://github.com/gdonald/blackjack-el/issues
Code for Blackjack in other programming languages: