Coder Social home page Coder Social logo

gsobell / dango Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 2.0 300 KB

a Go board for the terminal 🍑

Home Page: https://gsobell.github.io/programs/baduk-fortune/

License: GNU General Public License v3.0

Shell 2.01% Python 97.99%
go baduk weiqi gnugo ascii shell-wrappers python terminal curses ncurses vim-keybindings

dango's Introduction

dango 🍑

dango is a nCurses Go board for the terminal

danβ€’go [だんご]
noun

  1. A Japanese dumpling made from mochiko (rice flour)
  2. A Japanese go term, meaning "dumpling shape"; a solid mass of stones without eyes, and with few liberties

Usage

To try it without installing:

python <(curl -s https://raw.githubusercontent.com/gsobell/dango/dan/dango.py)

Installation

To download and launch, run the following:

curl -O https://raw.githubusercontent.com/gsobell/dango/dan/dango.py
mv dango.py dango && chmod +x dango
./dango

To install on Arch-based distros, use the PKGBUILD:

curl -O https://raw.githubusercontent.com/gsobell/dango/dan/PKGBUILD
makepkg -i

Alternatively, you can download a zip of the main branch. If you encounter any bugs, open a issue on GitHub.

Gameplay

Use the arrow or vim keys to navigate the board. Enter or space places a stone. Use u to undo, p to pass, q to quit. Also supports mouse input; click to move, double click to place stone.

Features

Due to implementing the nCurses interface, there has been some feature regression. They will be re-implemented soon.

Current

  • nCurses interface
  • Two player games
  • Easy to use TUI (terminal user interface)
  • Full support for GTP (Go Text Protocol)
  • Toggle kifu (game record) with n during gameplay
  • Undo on user v. user games
  • Only allows legal moves
  • Start menu with settings

Future

  • Play against GnuGo
  • Persistent config
  • Captured stone tally
  • Optional move timer
  • Import/Export of games
  • Integration with in-house Go engine goma (in development)

Also note that dango.sh has been renamed dango-legacy and no further development will be done.

Find dango and more Go clients on Sensei's Library. If you like this, you might also enjoy termsuji, , sabaki, baduk-fortune, cbonsai, and haikunator. If you want to support this project, consider buying me a cup of coffee playing me in a game of Go.


Inspired by chs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.