Difference between revisions of "Unicode and ASCII boards"

From HexWiki
Jump to: navigation, search
(Added convention for X and O.)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The board can be represented in ASCII using either the full or compact formats below. The full layout is rotated 90 degrees from the compact one. (A fixed-width font is required for either board to display correctly in an e-mail client.)
+
 
 +
The board can be represented in ASCII or Unicode (with fixed-width fonts) using either the full or compact formats below.
 +
 
 +
For the stones, the usual ASCII convention is to use "X" for Black and "O" for White. Another convention is to use "V" for the vertical player (Black) and "H" for the horizontal player (White). With Unicode, the symbols "●", "○", and "⋅" can also be used for a black stone, white stone, and empty cell, respectively.
 +
 
 +
== Full layouts ==
  
 
<pre>
 
<pre>
 +
    A  B  C  D  E  F  G  H  I  J  K
 +
    __  __  __  __  __  __  __  __  __  __  __
 +
  /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  1
 +
1  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
    /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  2
 +
  2  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
      /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  3
 +
    3  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
        /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  4
 +
      4  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
          /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  5
 +
        5  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
            /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  6
 +
          6  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
              /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  7
 +
            7  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
                /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  8
 +
              8  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
                  /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  9
 +
                9  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
                    /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \ 10
 +
                  10 \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
 +
                      /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \ 11
 +
                    11 \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/
  
Compact layouts:
+
                        A  B  C  D  E  F  G  H  I  J  K
 +
</pre>
  
           A B C D E F G H I
+
<pre>
        1 . . . . . . . . .
+
                              __
           2 . . . . . . . V .
+
                            __/  \__
          3 . . V . . . . V .
+
                        __/  \__/  \__
            4 . . . V . . . . .
+
                      __/  \__/  \__/  \__
            5 . . . . . . V . .
+
                  __/  \__/  \__/  \__/  \__
              6 . . V H H H V . .
+
           X    __/  \__/  \__/  \__/  \__/  \__  0
               7 . . . . . . H . .
+
            __/ \__/  \__/  \__/  \__/  \__/  \__
                8 . H . V . H . . .
+
           __/ \__/  \__/  \__/  \__/  \__/  \__/  \__
                9 . H . . . . . . .
+
      __/ \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
 +
    __/ \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
 +
  __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
 +
/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/ \
 +
\__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
 +
  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
 +
      \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
 +
        \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
 +
            \__/  \__/  \__/  \__/  \__/  \__/  \__/
 +
               \__/  \__/  \__/  \__/  \__/ \__/
 +
          0      \__/ \__/  \__/  \__/  \__/    X
 +
                    \__/ \__/  \__/  \__/
 +
                        \__/  \__/  \__/
 +
                          \__/  \__/
 +
                              \__/
 +
</pre>
  
                  a b c d e f g
+
== Compact layouts ==
              7 - - - - - - - 7
+
              6 - - - - - - - 6
+
            5 - - - - - - - 5
+
            4 - - - - - - - 4
+
          3 - - - - - - - 3
+
          2 - - - - - - - 2
+
        1 - - - - - - - 1
+
          a b c d e f g
+
  
 +
<pre>
 +
          A B C D E F G H I J K
 +
        1  . . . . . . . . . . .
 +
          2  . . . . . . . V . . .
 +
          3  . . V . . . . V . . .
 +
            4  . . . V . . . . . . .
 +
            5  . . . . . . V . . . .
 +
              6  . . V H H H V . . . .
 +
              7  . . . . . . H . . . .
 +
                8  . H . V . H . . . . .
 +
                9  . H . . . . . . . . .
 +
                  10 . . . . . . . . . . .
 +
                  11 . . . . . . . . . . .
 +
 +
</pre>
 +
 +
<pre>
 +
          A B C D E F G H I J K
 +
          ■■■■■■■■■■■■■■■■■■■■■■■■
 +
        1 \ · · · · · · · · · · · \
 +
        2 \ · · · · · · · · · · · \
 +
          3 \ ● · · · · · · · · · · \
 +
          4 \ · · · · · · · · · · · \
 +
            5 \ · · · · · · ○ ○ · · · \
 +
            6 \ · · · · ● ○ ● · · · · \
 +
              7 \ · · · · ○ · · · · · · \
 +
              8 \ · · ● · · · · · ● ● · \
 +
                9 \ · · · · · · · ● ○ ○ · \
 +
                10 \ · · · · · ○ · · · · · \
 +
                11 \ · · · · · · ● · · · · \
 +
                    ■■■■■■■■■■■■■■■■■■■■■■■■
 +
</pre>
 +
 +
<pre>
 
                 /.\                       
 
                 /.\                       
 
               /. .\
 
               /. .\
 
               /. . .\
 
               /. . .\
          X  /. . . .\ O
+
            /. . . .\
            /. . . . .\
+
        O  /. . . . .\ X
 
           /. . . O . .\
 
           /. . . O . .\
 
           /. . O . . . .\
 
           /. . O . . . .\
 
         /. . . . . . . .\
 
         /. . . . . . . .\
        . . X O X . . . .  
+
        /. . X O X . . . .\
 +
      /. . . . . . . . . .\
 +
      . . . . . . . . . . .
 +
      \. . . . X . . . . ./
 +
        \. . . . . . . . ./
 
         \. . . . . . . ./  
 
         \. . . . . . . ./  
           \. . X . . . ./
+
           \. . . . . . ./
 
           \. . . . . ./
 
           \. . . . . ./
            \. . . . ./
+
        X  \. . . . ./  O
          O \. . . ./ X
+
            \. . . ./
 
               \. . ./
 
               \. . ./
 
               \. ./
 
               \. ./
                 \./
+
                 \./           
 
+
Full layout:
+
 
+
              O _ X
+
            O _/ \_ X
+
          O _/ \_/ \_ X
+
         O _/ \_/ \_/ \_ X
+
      O _/ \_/ \_/ \_/ \_ X
+
    O _/ \_/ \_/ \_/ \_/ \_ X
+
  O _/ \_/ \_/ \_/ \_/ \_/ \_ X
+
O _/ \_/ \_/ \_/ \_/ \_/ \_/ \_ X
+
_/ \_/ \_/O\_/ \_/ \_/ \_/ \_/ \_
+
/ \_/ \_/ \_/ \_/X\_/ \_/ \_/ \_/ \
+
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
+
X\_/ \_/ \_/O\_/O\_/X\_/ \_/ \_/O
+
  X\_/ \_/ \_/ \_/ \_/ \_/ \_/O
+
    X\_/ \_/ \_/X\_/ \_/ \_/O
+
      X\_/ \_/ \_/ \_/ \_/O
+
        X\_/ \_/ \_/ \_/O
+
          X\_/ \_/ \_/O
+
            X\_/ \_/O
+
              X\_/O
+
               
+
 
</pre>
 
</pre>
 +
 +
[[Category: Resources]]

Latest revision as of 22:03, 7 November 2024

The board can be represented in ASCII or Unicode (with fixed-width fonts) using either the full or compact formats below.

For the stones, the usual ASCII convention is to use "X" for Black and "O" for White. Another convention is to use "V" for the vertical player (Black) and "H" for the horizontal player (White). With Unicode, the symbols "●", "○", and "⋅" can also be used for a black stone, white stone, and empty cell, respectively.

Full layouts

    A   B   C   D   E   F   G   H   I   J   K
    __  __  __  __  __  __  __  __  __  __  __
   /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  1
1  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
     /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  2
  2  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
       /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  3
    3  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
         /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  4
      4  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
           /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  5
        5  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
             /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  6
          6  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
               /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  7
            7  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
                 /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  8
              8  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
                   /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \  9
                9  \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
                     /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \ 10
                  10 \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/_
                       /  \/  \/  \/  \/  \/  \/  \/  \/  \/  \/  \ 11
                    11 \__/\__/\__/\__/\__/\__/\__/\__/\__/\__/\__/

                         A   B   C   D   E   F   G   H   I   J   K
                               __
                            __/  \__
                         __/  \__/  \__
                      __/  \__/  \__/  \__
                   __/  \__/  \__/  \__/  \__
           X    __/  \__/  \__/  \__/  \__/  \__   0
             __/  \__/  \__/  \__/  \__/  \__/  \__
          __/  \__/  \__/  \__/  \__/  \__/  \__/  \__
       __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
    __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
 __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \
\__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
   \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
      \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
         \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
            \__/  \__/  \__/  \__/  \__/  \__/  \__/
               \__/  \__/  \__/  \__/  \__/  \__/
           0      \__/  \__/  \__/  \__/  \__/     X
                     \__/  \__/  \__/  \__/
                        \__/  \__/  \__/
                           \__/  \__/
                              \__/

Compact layouts

           A B C D E F G H I J K
         1  . . . . . . . . . . .
          2  . . . . . . . V . . .
           3  . . V . . . . V . . .
            4  . . . V . . . . . . .
             5  . . . . . . V . . . .
              6  . . V H H H V . . . .
               7  . . . . . . H . . . .
                8  . H . V . H . . . . .
                 9  . H . . . . . . . . .
                  10 . . . . . . . . . . .
                   11 . . . . . . . . . . .

           A B C D E F G H I J K
          ■■■■■■■■■■■■■■■■■■■■■■■■
        1 \ · · · · · · · · · · · \
         2 \ · · · · · · · · · · · \
          3 \ ● · · · · · · · · · · \
           4 \ · · · · · · · · · · · \
            5 \ · · · · · · ○ ○ · · · \
             6 \ · · · · ● ○ ● · · · · \
              7 \ · · · · ○ · · · · · · \
               8 \ · · ● · · · · · ● ● · \
                9 \ · · · · · · · ● ○ ○ · \
                10 \ · · · · · ○ · · · · · \
                 11 \ · · · · · · ● · · · · \
                     ■■■■■■■■■■■■■■■■■■■■■■■■
                /.\                       
               /. .\
              /. . .\
             /. . . .\
         O  /. . . . .\  X
           /. . . O . .\
          /. . O . . . .\
         /. . . . . . . .\
        /. . X O X . . . .\ 
       /. . . . . . . . . .\
       . . . . . . . . . . .
       \. . . . X . . . . ./
        \. . . . . . . . ./ 
         \. . . . . . . ./ 
          \. . . . . . ./
           \. . . . . ./
         X  \. . . . ./  O
             \. . . ./
              \. . ./
               \. ./
                \./