Caution
Weight tables and book are currently undergoing adjustments. Please be aware that unstable behavior may occur.
- Play Reversi in Vim/Neovim without any external dependencies.
- Features a CPU opponent that uses a simple position-based evaluation.
- If Lua support is available (Neovim or Vim with
+lua), a much stronger engine using the Nega-Scout algorithm will be used.
Using vim-plug
Plug 'tokinasin/reversi.vim'Start a new game:
:Reversi- The first player is chosen randomly.
- Move the cursor to an empty square.
- Press
<CR>(Enter) to place your disc. - The CPU will automatically respond.
:help reversi- make CPU stronger
The board evaluation weights used in the AI engine are based on the values provided in the following article. A big thank you to the author.
You can use this work under the terms of either:
