Skip to content

jphager2/ruby-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Game of Go written in Ruby, save files as sgf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages