Skip to content

Commit

Permalink
Merge pull request #13 from NStefan002/different-board-dimensions
Browse files Browse the repository at this point in the history
feat: 'new game' keymap, choose between many board sizes
  • Loading branch information
NStefan002 authored Feb 28, 2024
2 parents 14475a1 + 189a13d commit d21a9ab
Show file tree
Hide file tree
Showing 2 changed files with 355 additions and 75 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ use({

`:Rocks install 2048.nvim`


## ❓ How to Play

1. `:Play2048`
Expand All @@ -53,6 +52,9 @@ use({
- `l` - move the squares to the right
- `u` - undo the last move
- `r` - restart the game
- `n` - new game (select the board size)
- `<CR>` - confirm in menus
- `<Esc>` - cancel in menus

**NOTE:**

Expand All @@ -69,6 +71,9 @@ require("2048").setup({
right = "<Right>",
undo = "<C-z>",
restart = "R",
new_game = "N",
confirm = "y",
cancel = "n",
},
})
```
Expand Down
Loading

0 comments on commit d21a9ab

Please sign in to comment.