Blackjack.nvim is a neovim plugin that implements a classic BlackJack game in neovim.
Using the "mini" style of cards:
Screen.Recording.2023-02-27.at.12.00.12.mov
Using the "large" style of cards:
new_long.mov
- Neovim >= 0.5.0
Using Packer
use {
'alanfortlink/blackjack.nvim',
requires = {'nvim-lua/plenary.nvim'},
}
Using vim-plug
Plug 'nvim-lua/plenary.nvim'
Plug 'alanfortlink/blackjack.nvim'
require("blackjack").setup({
card_style = "mini", -- Can be "mini" or "large".
suit_style = "black", -- Can be "black" or "white".
scores_path = "/home/foo/blackjack_scores.json", -- Default location to store the scores.json file.
keybindings = {
["next"] = "j",
["finish"] = "k",
["quit"] = "q",
},
})
To start a new game:
:BlackJackNewGame
To quit the game you can press q
or:
:BlackJackQuit
To reset the scores:
:BlackJackResetScores
Press j
and k
to play the game and q
to quit.