… | |
… | |
8 | Please supply a description ) |
8 | Please supply a description ) |
9 | |
9 | |
10 | EXPORTED CONSTANTS |
10 | EXPORTED CONSTANTS |
11 | Marker types for each board position (ORed together): |
11 | Marker types for each board position (ORed together): |
12 | |
12 | |
13 | MARK_TRIANGLE # triangle mark |
|
|
14 | MARK_SQUARE # square mark |
|
|
15 | MARK_CIRCLE # circle mark |
|
|
16 | MARK_CROSS # cross mark |
|
|
17 | MARK_SMALL_B # small stone, used for scoring or marking |
|
|
18 | MARK_SMALL_W # small stone, used for scoring or marking |
|
|
19 | MARK_B # normal black stone |
13 | MARK_B # normal black stone |
20 | MARK_W # normal whit stone |
14 | MARK_W # normal whit stone |
21 | MARK_GRAYED # in conjunction with MARK_[BW], grays the stone |
15 | MARK_GRAYED # in conjunction with MARK_[BW], grays the stone |
22 | MARK_LABEL # a text label |
|
|
23 | MARK_HOSHI # this is a hoshi point (not used much) |
|
|
24 | MARK_MOVE # this is a regular move |
|
|
25 | MARK_KO # this is a ko position |
|
|
26 | MARK_REDRAW # ignored, can be used for your own purposes |
|
|
27 | |
16 | |
28 | COLOUR_WHITE # guarenteed to be 0 |
17 | MARK_SMALL_B # small stone, used for scoring or marking |
29 | COLOUR_BLACK # guarenteed to be 1 |
18 | MARK_SMALL_W # small stone, used for scoring or marking |
|
|
19 | MARK_SMALL_GRAYED # in conjunction with MARK_SMALL_[BW], grays the stone |
30 | |
20 | |
|
|
21 | MARK_TRIANGLE # triangle mark |
|
|
22 | MARK_SQUARE # square mark |
|
|
23 | MARK_CIRCLE # circle mark |
|
|
24 | MARK_CROSS # cross mark |
|
|
25 | |
|
|
26 | MARK_LABEL # a text label |
|
|
27 | MARK_HOSHI # this is a hoshi point (not used much) |
|
|
28 | MARK_MOVE # this is a regular move |
|
|
29 | MARK_KO # this is a ko position |
|
|
30 | MARK_REDRAW # ignored, can be used for your own purposes |
|
|
31 | |
|
|
32 | COLOUR_WHITE # guaranteed to be 0 |
|
|
33 | COLOUR_BLACK # guaranteed to be 1 |
|
|
34 | |
31 | MOVE_HANDICAP # used as "x-coordinate" for handicap moves |
35 | MOVE_HANDICAP # used as "x-coordinate" for handicap moves |
32 | MOVE_PASS # can be used as "x-coordinate" for pass moves |
36 | MOVE_PASS # can be used as "x-coordinate" for pass moves |
33 | |
37 | |
34 | METHODS |
38 | METHODS |
35 | my $board = new $size |
39 | my $board = new $size |
36 | Creates a new empty board of the given size. |
40 | Creates a new empty board of the given size. |
37 | |
41 | |