A gem that implements the rules of go (igo, weiqi, baduk).
game = RubyGo::Game(board: 19)
game.place_black(3,3)
game.place_white(15,15)
# ...
game.pass_black
game.pass_white
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)
The rubygo executable included in the gem is CLI that plays the game of go.