Project

ruby-go

0.0
No commit activity in last 3 years
No release in over 3 years
A gem to play go and save games as sgf
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.0.0
 Project Readme

Ruby Go

A gem that implements the rules of go (igo, weiqi, baduk).

Use

game = RubyGo::Game(board: 19)
game.place_black(3,3)
game.place_white(15,15)

# ...

game.pass_black
game.pass_white

Printers

There are a few printers included in the gem, including TextPrinter and HTMLPrinter.

The printer takes an IO like object, and can print the game.

printer = RubyGo::TextPrinter.new($stdout)
printer.print_game(game)

rubygo Command Line Interface

The rubygo executable included in the gem is CLI that plays the game of go.