A Python library for developing applications for the game of Go.
Find a file
2025-04-15 13:13:58 -05:00
libgoban Replace return type of Point._index_to_col_letter from str to chr 2025-04-15 13:13:58 -05:00
tests Add col and row properties to Point class. 2025-04-15 13:11:49 -05:00
.gitignore Restore BOARD_LETTERS constant and update .gitignore 2025-04-06 11:37:05 -05:00
LICENSE Add LICENSE and push to GitHub 2025-01-20 11:12:29 -06:00
pyproject.toml Rename cli.py to __main__.py and fix bug in game.make_move 2025-04-07 20:43:46 -05:00
README.md Remove rich dependency and update README 2025-04-10 15:39:00 -05:00

libgoban

A Python library for working with the game of Go.

Install it from PyPI (Not Yet Implemented)

NOTE: THIS IS NOT AVAILABLE ON THE PyPI REPOSITORIES YET

pip install libgoban

Usage

You can use libgoban as a way to design and test bots, with a dummy bot

import libgoban

player1 = Player(name="John Doe", stone=Stone.BLACK)
player2 = engine.DummyBot(stone=Stone.WHITE)

game = Game(player1=player1, player2=player2, size=19)
game.play()

You can also call the libgoban cli interface as a Python module or directly from the command line.

$ python -m libgoban

# OR

$ libgoban