# Can we integrate software to show Go and Chess positions?

From area51:

Would it be possible to get something that would allow us to display Go and Chess positions on this site?

This has been raised as a possible objection towards integrating the Go and Chess StackExchange proposals here.

At this time, I don't know what exact software is needed, but I can research if necessary. If anyone who sees this has an opinion on it, please let us know!

• Uploading images wouldn't be sufficient? I know there's plenty of sites that let you drag and drop pieces onto a board and generate and image for you. – Gordon Gustafson Apr 16 '11 at 14:59
• It would be good to use one of these on this answer: boardgames.stackexchange.com/questions/3379/… The uppercase/lowercase style is easy to read when there are only a few pieces, but with a whole board full of pieces...! – tttppp May 10 '11 at 7:35
• @tttppp, I've submitted an edit with a diagram. You're right, for complex positions, it's difficult. At least in this case, it helped to know that all pieces were on the board and were both attacking and defending other pieces. – Dave DuPlantis Jul 11 '11 at 16:45
• I've read that this sort of support is also requested by several people wanting to make this a Magic the Gathering friendly environment. From the very simple :p: displaying a plains symbol sort of support to more involved :Atog: showing a picture of the Atog card. Is there substantial overhead or other issue involved with including these types of features? – Stephen Aug 12 '11 at 20:31
• Of course standard playing card smilies (or whatever) would be helpful too. Slippery slope, where do you stop? – Stephen Aug 16 '11 at 17:52
• @stephen - I don't know. If a strong consensus develops here on particular solutions then hopefully the devs will weigh in. – Pat Ludwig Aug 16 '11 at 19:18
• As a stopgap, for Chess there is a board image builder here which works quite well. It's linked from the chess tag wiki as well. – ire_and_curses Jan 18 '12 at 23:21

Just as a quick update on the current state: @balpha provided us with an excellent diagram renderer for Go. I'm quoting his answer from mGoSE:

I doubt anybody working at Stack Exchange is going to take time to learn how to write an SGF parser just for a private beta site.

No, I didn't write an SGF parser, but the arguably most important thing – Sensei-style diagrams – will work now. It's not feature-complete (e.g. arrows aren't implemented), but at least you can see normal board situations.

$$Wcm31 This is the example diagram from the L19 forum thread http://lifein19x19.com/forum/viewtopic.php?f=5&amp;t=226$$ ---------------------------------------
$$| . . . . . . . . . . . . . . ? ? ? ? ? |$$ | . . . . . . . . . . . . . . ? ? ? ? ? |
$$| . . . . . . . . . . . . . . ? ? ? ? ? |$$ | . . X X X . . . . * . . . . O O O . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . B . . . . . C . . . . . W . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . # . . . . . S . . . . . @ . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . Y . . . . . T . . . . . Q . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . Z . . . . . M . . . . . P . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . . . 1 . 2 . 3 . 4 . 5 . . . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ | . . . , . . . . . , . . . . . , . . . |
$$| . . . a . b . c . d . x . y . z . . . |$$ | . . . . . . . . . . . . . . . . . . . |
$$| . . . . . . . . . . . . . . . . . . . |$$ ---------------------------------------


Indent the markup by four spaces (i.e. make it a "code block", using Ctrl-K or the "{}" button).

My renderer uses the HTML5 Canvas, so your browser needs to support that – but these days, all of them except IE8 do. And even without the rendering, the diagrams in code blocks are of course still reasonably readable.

• (doesn't work on met apparently) – mafu Dec 14 '11 at 10:37
• @balpha - Any chance this could be adapted to implement Chess positions in a similar way? Much of your code looks reusable, and us poor Chess players need some love too...! ;) – ire_and_curses Jan 6 '12 at 18:21

Hi, looks like you didn't get much help on this matter. This link should get you started with GO diagrams:

http://senseis.xmp.net/?WebViewers

For chess:

http://www.enpassant.dk/chess/diaeng.htm

http://www.caissa.com/chess-tools/chess-diagram-generator.php

http://www.chessvideos.tv/chess-diagram-generator.php

• Thanks for the pointers! – Pat Ludwig Apr 24 '11 at 15:17

For go refer to my older post: https://area51.meta.stackexchange.com/questions/792/about-related-existing-sites/1913#1913

On lifein19x19 we have three different go specific features:

1. Sgf Diagrams
A Sgf diagram represents a game tree that can be navigated.
These are based on Eidogo which is an AGPL licensed piece of javascript. The essential features require no server side support. There are some other in browser sgf viewers, but I think this one is the best. License might be a problem though.
2. Board diagrams
Renders a one time snapshot of a board. The text describes the stones present on the board. There is no game tree.
We use http://senseis.xmp.net/?GoWiki%2FSLtxt2PNG which is written on php 5. But if necessary I can write something similar in C#.
3. Go specific "smilies"
These are short strings that the bbcode parser replaces with go specific icons such as numbered or marked stone. For example ":w10:" becomes a small image of a white stone with the number 10 on it.

Since the accepted answer gives relatively little detail, it may be useful to see my more detailed answer to How do we enter Go Boards on this site?