Skip to content

alanfortlink/blackjack.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack.nvim

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

Requirements

Installation

Using Packer

use {
  'alanfortlink/blackjack.nvim',
  requires = {'nvim-lua/plenary.nvim'},
}

Using vim-plug

Plug 'nvim-lua/plenary.nvim'
Plug 'alanfortlink/blackjack.nvim'

Setup (Optional)

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",
  },
})

Usage

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.

About

Classic Black Jack game in Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages