Skip to content

Commit 26d3059

Browse files
committed
Update README.md to include SVG chess pieces and clarify asset structure
- Added details about SVG chess pieces for consistent rendering across browsers. - Updated asset section to specify SVG files for each chess piece. - Enhanced project description to highlight the use of SVG assets.
1 parent 3fd839f commit 26d3059

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ It is designed to be simple, lightweight, and easily deployable on static hostin
8585
<br>
8686

8787
- **Elegant Board Design:** Professional-looking chess board with subtle texturing
88+
- **SVG Chess Pieces:** High-quality vector graphics for consistent piece rendering across all browsers
8889
- **Responsive Layout:** Adapts to different screen sizes while maintaining playability
8990
- **Visual Clarity:** Clean, uncluttered interface that focuses on the gameplay
9091
- **Sophisticated Colors:** Carefully selected color palette for optimal contrast and reduced eye strain
@@ -155,7 +156,13 @@ Static_Chess/
155156
│ ├── board.js # Board rendering and interaction
156157
│ ├── game.js # Core game logic
157158
│ └── main.js # Application entry point
158-
└── assets/ # For piece images (SVG)
159+
└── assets/ # SVG files for chess pieces
160+
├── wp.svg, bp.svg # White and black pawns
161+
├── wr.svg, br.svg # White and black rooks
162+
├── wn.svg, bn.svg # White and black knights
163+
├── wb.svg, bb.svg # White and black bishops
164+
├── wq.svg, bq.svg # White and black queens
165+
└── wk.svg, bk.svg # White and black kings
159166
```
160167

161168
The project follows a clear separation of concerns:
@@ -168,6 +175,7 @@ The project follows a clear separation of concerns:
168175
- `board.js`: DOM manipulation for the board interface
169176
- `game.js`: Core chess logic including special moves, check detection, etc.
170177
- `main.js`: Bootstraps the application
178+
- **SVG assets:** Vector graphics for all chess pieces, ensuring consistent rendering across browsers
171179

172180
</details>
173181

@@ -194,7 +202,6 @@ Since this is a purely static website, it can be easily deployed on any static h
194202
<summary><b>Planned Features</b></summary>
195203
<br>
196204

197-
- **SVG Piece Graphics:** Replace Unicode characters with custom SVG images
198205
- **Drag and Drop:** Allow moving pieces by dragging
199206
- **AI Opponent:** Implement basic chess AI using minimax algorithm
200207
- **Promotion Choice:** UI for selecting which piece to promote a pawn to

0 commit comments

Comments
 (0)