Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 875 Bytes

File metadata and controls

28 lines (20 loc) · 875 Bytes

goboard

goboard.py generates an svg file for a go board or goban. The resulting file is suitable to print your own board. I used it on wood with a laser cutter to create a beautiful handmade board. This is also a great example of how to use the svgwrite library in python to create simple graphics.

Usage

You will need svgwrite to use this program:

  pip install svgwrite

To use, simply run from the command line:

  python goboard.py

There are a few command line options which allow you pick where to write the file, and what kind of board to generate. A -h flag will show all the options. Here's an example:

  python goboard.py --size="Standard 13x13" --output="13x13board.svg"