Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In chess programs (typically for computing best moves, solve riddles, etc.) internally a 10×10 board is used where the middle 8×8 fields are used by the visible and playable board. (The margin helps keep the code simple.) To simplify memory management, typically a linear memory is used to store this, i. e. 100 fields. The position of a field of the board is then computed using <code>board[(y+1) * 10 + (x+1)]</code> with x, y in the range 0..7. (Init by <code>board = [ 0 ] * 100</code>.)</p> <p>So you might want to use this, just in case your program later should expand to also compute moves or stay compatible with a library doing this.</p> <p>As for graphics, I propose to use this board:</p> <pre class="lang-none prettyprint-override"><code> A B C D E F G H ------- ------- ------- ------- ------- ------- ------- ------- | @___@ | %~b | .@. | \o*o/ | __+__ | .@. | %~b | @___@ | 8| @@@ | `'dX | @@@ | @@@ | `@@@' | @@@ | `'dX | @@@ |8 | d@@@b | d@@b | ./A\. | d@@@b | d@@@b | ./A\. | d@@b | d@@@b | ------- ------- ------- ------- ------- ------- ------- ------- | _ | _ | _ | _ | _ | _ | _ | _ | 7| (@) | (@) | (@) | (@) | (@) | (@) | (@) | (@) |7 | d@b | d@b | d@b | d@b | d@b | d@b | d@b | d@b | ------- ------- ------- ------- ------- ------- ------- ------- | | . . . | | . . . | | . . . | | . . . | 6| | . . . | | . . . | | . . . | | . . . |6 | | . . . | | . . . | | . . . | | . . . | ------- ------- ------- ------- ------- ------- ------- ------- | . . . | | . . . | | . . . | | . . . | | 5| . . . | | . . . | | . . . | | . . . | |5 | . . . | | . . . | | . . . | | . . . | | ------- ------- ------- ------- ------- ------- ------- ------- | | . . . | | . . . | | . . . | | . . . | 4| | . . . | | . . . | | . . . | | . . . |4 | | . . . | | . . . | | . . . | | . . . | ------- ------- ------- ------- ------- ------- ------- ------- | . . . | | . . . | | . . . | | . . . | | 3| . . . | | . . . | | . . . | | . . . | |3 | . . . | | . . . | | . . . | | . . . | | ------- ------- ------- ------- ------- ------- ------- ------- | _ | _ | _ | _ | _ | _ | _ | _ | 2| ( ) | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) | ( ) |2 | /_\ | /_\ | /_\ | /_\ | /_\ | /_\ | /_\ | /_\ | ------- ------- ------- ------- ------- ------- ------- ------- | [___] | %~\ | .O. | \o^o/ | __+__ | .O. | %~\ | [___] | 1| [ ] | `')( | \ / | [ ] | `. .' | \ / | `')( | [ ] |1 | /___\ | &lt;__&gt; | /_\ | /___\ | /___\ | /_\ | &lt;__&gt; | /___\ | ------- ------- ------- ------- ------- ------- ------- ------- A B C D E F G H </code></pre> <p>I made these ASCII graphics back in the 90s for <a href="http://www.tubmud.de" rel="nofollow">Tubmud</a>. Feel free to use them.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload