https://github.com/gdonald/blackjack-el
Play Blackjack in Emacs
https://github.com/gdonald/blackjack-el
21 blackjack blackjack-game console elisp emacs emacs-lisp games
Last synced: 9 months ago
JSON representation
Play Blackjack in Emacs
- Host: GitHub
- URL: https://github.com/gdonald/blackjack-el
- Owner: gdonald
- License: gpl-3.0
- Created: 2022-03-30T23:41:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T18:15:28.000Z (over 1 year ago)
- Last Synced: 2025-10-07T13:52:59.355Z (10 months ago)
- Topics: 21, blackjack, blackjack-game, console, elisp, emacs, emacs-lisp, games
- Language: Emacs Lisp
- Homepage: https://gregdonald.com
- Size: 688 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://melpa.org/#/blackjack)
## Blackjack for Emacs
This package provides the [Blackjack](https://en.wikipedia.org/wiki/Blackjack) card game for your [Emacs](https://www.gnu.org/software/emacs/) text editor.
### Install
#### If you use [use-package](https://github.com/jwiegley/use-package):
Assuming you have [MELPA configured](https://melpa.org/#/getting-started), you can add a new entry to your .emacs or init.el:
(use-package blackjack
:ensure t)
#### Or for a manual install:
Download and load [blackjack.el](https://raw.githubusercontent.com/gdonald/blackjack-el/main/blackjack.el) in your .emacs or init.el:
(load "~/path/to/blackjack.el")
#### Running blackjack:
Once installed you can run the game like this:
M-x blackjack
#### Running tests:
Comands `make test` and `make test-coverage` are convenience commands available. Tests are written using [Buttercup](https://github.com/jorgenschaefer/emacs-buttercup). Test coverage is generated using [undercover](https://github.com/undercover-el/undercover.el). Both packages are available from MELPA.
You will need to install [Ruby](https://www.ruby-lang.org/) and [Simplecov](https://github.com/simplecov-ruby/simplecov) for test coverage to build.
#### Going broke:
If you run out of money, delete `blackjack.txt` and restart blackjack. You will get a free $100 for another try.
### Screenshots:


### Bugs / Issues / Feature Requests
Please report any bugs or issues you find:
[https://github.com/gdonald/blackjack-el/issues](https://github.com/gdonald/blackjack-el/issues)
### License
[](https://github.com/gdonald/blackjack-el/blob/main/LICENSE)
### Other Blackjack Implementations:
I've written Blackjack in [some other programming languages](https://github.com/gdonald?tab=repositories&q=blackjack&type=public&language=&sort=stargazers) too. Check them out!