Blackjack.nvim is a neovim plugin that implements a classic BlackJack game in neovim.
Using the "mini" style of cards:
Screen.Recording.2023-02-25.at.21.38.05.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"
})
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.