Skip to main content

vim-goban

A terminal-based Go (Baduk) game controlled by Vim motions.

vim-goban lets you play Go directly in your terminal with familiar Vim keybindings.

Built with Python and powered by GNU Go AI.

Features

  • 🏁 Terminal UI based Go board
  • 🎮 Vim motion controls
  • 🤖 GNU Go AI integration
  • ⚫⚪ Stone capture system
  • 🔄 Undo support
  • ⏩ Pass / Resign support
  • 🌱 Lightweight and keyboard focused

Screenshot

vim-goban

Installation

Requirements

  • Python 3.10+
  • GNU Go

Install GNU Go

macOS

brew install gnugo

Ubuntu / Debian

sudo apt install gnugo

Check installation:

gnugo --version

Install vim-goban

Clone the repository:

git clone https://github.com/yourname/vim-goban.git

cd vim-goban

Install dependencies:

pip install -e .

Run:

goban

or:

python -m goban.main

Controls

Movement

vim-goban uses Vim style movement.

Key Action
h Move left
j Move down
k Move up
l Move right

Jump Movement

Key Action
Ctrl+h Jump left
Ctrl+j Jump down
Ctrl+k Jump up
Ctrl+l Jump right
b Jump left
w Jump right

Position Movement

Key Action
Shift + H Move to top of column
Shift + L Move to bottom of column
Shift + A Move to far left
Shift + I Move to far right
Shift + M Move to middle

Game Controls

Key Action
Enter Place stone
p Pass
r Resign
u Undo last move
? Toggle help
q Quit game

Gameplay

Capturing Stones

When a group of stones has no remaining liberties, the stones are removed from the board.

Example:

. ● ○ .
. ● ○ .
. ● . .

After capture:

. ● . .
. ● . .
. ● . .

AI

After placing a stone, GNU Go responds automatically.

GNU Go provides the computer opponent while vim-goban handles:

  • Board rendering
  • User input
  • Game state
  • Go rules

Project Structure

vim-goban/
│
├── goban/
│   ├── main.py        # Game loop
│   ├── board.py       # Go rules and board state
│   ├── renderer.py    # Terminal renderer
│   ├── input.py       # Vim motion input
│   └── engine.py      # GNU Go communication
│
├── tests/
│
├── README.md
├── LICENSE
└── pyproject.toml

Development

Create virtual environment:

python -m venv .venv

source .venv/bin/activate

Install development dependencies:

pip install -e ".[dev]"

License

MIT License

See LICENSE.

Author

yonghun16

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vim_goban-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vim_goban-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file vim_goban-0.1.0.tar.gz.

File metadata

  • Download URL: vim_goban-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for vim_goban-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63b876e7b23aa92d0709aa7fecceda0a756f20887f156356a02221d1467204f7
MD5 0778fe3c8a5c5d6640f7de1d01301918
BLAKE2b-256 e386167aaeb557e38b671fe51dfb2168de15ef2d4235cc212066e4d333aa7239

See more details on using hashes here.

File details

Details for the file vim_goban-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vim_goban-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for vim_goban-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1724a5e3fda0e0e175934df01e474055b8aae72028986e23d16e75a4f81ef4be
MD5 0a7c62c93f61d442e52547d9b182886e
BLAKE2b-256 15d47a845b03947fdf5d0fc5705804184849dfeb3897edf8efaca3b30af0d6dc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page