title: How to draw a chess board in D3?
body: <p>I would like to draw a chess board in D3:</p>
  
  <p><img src="https://i.stack.imgur.com/VQcQe.jpg" alt="Initial game position"></p>
  
  <p>I would be satisfied with just being able to draw the initial game position (as above). </p>
  
  <p>It may be the case that one does not need image files for king, queen, knight, etc. (there are 12 distinct pieces) since they are all part of <a href="http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode" rel="nofollow noreferrer">Unicode</a> as codepoints 2654-265F:</p>
  
  <p><img src="https://i.stack.imgur.com/4P91S.png" alt="Unicode chess symbols"></p>
  
  <p>The Unicode characters appear in any modern browser:</p>
  
  <p>♔ ♕ ♖ ♗ ♘ ♙ </p>
  
  <p>♚ ♛ ♜ ♝ ♞ ♟</p>
  
  <p>Unicode chess symbols on Wikipedia: <a href="https://en.wikipedia.org/wiki/Chess_symbols_in_Unicode" rel="nofollow noreferrer">here</a></p>
  
  <p>Python script to display chess board in a terminal using Unicode characters: <a href="https://www.daniweb.com/programming/software-development/code/423640/unicode-chessboard-in-a-terminal" rel="nofollow noreferrer">here</a>. Its result:</p>
  
  <p><a href="https://i.stack.imgur.com/aXguA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aXguA.png" alt="enter image description here"></a></p>
  
  <p>Any pointers or help would be much appreciated.</p>