This package lets you play Blackjack in Emacs.
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")
You can run it like this:
M-x blackjack
make test
and make test-coverage
are available. You will need ruby and the "simplecov" gem installed 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: