Piece path and positioning
- Using
pieces.js
to hold thed
value to specify the path to be drawn for a piece. We start by drawing a rook. To position the it, we use thepositions
dictionary and get the coordinates for where to place the rook path within thesvg
element.
Getting the position:
x = positions["A8"][0]
y = positions["A8"][1]
Commit b61e48f