You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Go: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Categorising)
m (removing cleanup tag -HR)
Line 25: Line 25:
would produce:  
would produce:  
[[image:img_go_example1]]
[[image:img_go_example1]]
{{cleanup}}


==Go board==
==Go board==

Revision as of 02:05, 8 October 2009

You can record a go game using [go]{GameScore}[/go], where {GameScore} is the list of moves made in the game to date.

  • To add a piece to the board you simply type in the location to drop the piece at. (eg. a2 will put a stone on a2)
  • To remove a piece from the board, use the minus sign and the location of the square to remove from.
  • To pass, type in P or Pass.
  • To add a piece other than the default (which will be a solid black or solid white stone, depending on whose turn it is) you use the equal sign (=). Eg. a4=(b1) will place the black stone with a 1 in it instead of the plain stone that would normally be placed.
  • To increase your prisoner count append your move with a * for every prisoner taken or with *<number of prisoners taken>
  • To make multiple moves in the same turn, connect the moves with a plus sign "+". (eg. a2+a3+-d5* will put stones on a2 and a3 and will remove a stone from d5 and increase your prisoner count by 1)
  • This can make for messy move lists so you can change what the movelist says by enclosing it in braces {} (with no space between the move and the open brace).

There aren't any good go formats (SGF is too complex and Ishi is illegible), so I've tried to follow what will make sense. If you are familiar with go in other programs, please note the algebraic notation used. The board is shown with a1 in the lower left corner.

I allow subtags, similar to the PGN notation for Chess. The format is open open bracket, tag, space, double quote, value, double quote, close bracket. Three tags to take note of are:

  • BoardSize: in the form n or nxm. This will create a board other than the standard 19x19 board. If only one number is specified, it will be a square board nxn. If the form nxm is used, then the board will be n points wide and m points tall.
  • SetupBlack: This is a list of "moves" to be made before the start of the game. The default piece is black. (I expect this will be used for handicaps)
  • SetupWhite: This is the same as SetupBlack, except it places white pieces by default.
  • (I've also made a generic Setup tag, need to document it, but basically use the same format as moves)

The tags that are displayed are: Boardsize, Event, Site, Date, Round, White, Black, Result, Komi, SetupBlack, SetupWhite, Players

[go][white "JEEP"][Black "Other"][site "GL"][date "2004/??/??"][Round "1"][Event "GL Tournament"][result "*"]e4 e5 d4 P[/go]

would produce: File:Img go example1

Go board

You can show a go board graphic using the goboard tag. Because there is no really good format that exists, I used similar coding as the old GL tags. 'b' will place a black stone, 'w' a white stone, 'e' an empty point, and h a handicap point. So a blank 9x9 board could be:

[goboard]
e e e e e e e e e 
e e e e e e e e e 
e e h e e e h e e 
e e e e e e e e e 
e e e e e e e e e 
e e e e e e e e e 
e e h e e e h e e 
e e e e e e e e e 
e e e e e e e e e[/goboard]

And it might look like this after a couple moves

[goboard]
e e e e e e e e e 
e e e e e e e e e 
e e b e e e h e e 
e e e e e e e e e 
e e e e e e e e e 
e e e e e e w e e 
e e h e e e h e e 
e e e e e e e e e 
e e e e e e e e e[/goboard]

Captured stones are NOT currently given anyplace to be, so you can add text to your post for that.  ;)

As a training aid, you can also use b1-b100 and w1-w100 to place numbered stones. This is more diffictult to manage in the text of the code though, so be careful. Finally bt and wt will place stones with triangles.

For backward compatability, [goboard9], [goboard13], and [goboard19] have been kept, but do exactly the same thing as [goboard]

For "outward" compatability, I allow for a common format used on Go mailing lists: # == black stone; O == white stone, ' or + == handicap point.

The board does not need to be square, but only rectangular boards are handled nicely.