Chess symbols in Unicode

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Font depictions of Unicode chess symbols (in the same order as the table). Top: Arial Unicode MS font. Bottom: Tahoma font.

Chess symbols are part of Unicode. Instead of using images, one can represent chess pieces by symbols that are defined in the Unicode character set. This makes it possible to:

In order to display or print these symbols, one has to have one or more fonts with good Unicode support installed on the computer, and the document (Web page, word processor document, etc.) must use one of these fonts.[1]

Unicode codepoints and HTML[edit]

Chess symbols are part of the Miscellaneous Symbols block.

Chess Symbols
Unicode.org chart (PDF)
Name Symbol Codepoint HTML
white chess king U+2654 ♔
white chess queen U+2655 ♕
white chess rook U+2656 ♖
white chess bishop U+2657 ♗
white chess knight U+2658 ♘
white chess pawn U+2659 ♙
black chess king U+265A ♚
black chess queen U+265B ♛
black chess rook U+265C ♜
black chess bishop U+265D ♝
black chess knight U+265E ♞
black chess pawn U+265F ♟

Chessboard[edit]

8
7
6
5
4
3
2
1
a b c d e f g h

Chessboards can also be rendered using the Template:Chess diagram. For example:

a b c d e f g h
8
Chessboard480.svg
a8 black rook
b8 black knight
c8 black bishop
d8 black queen
e8 black king
f8 black bishop
g8 black knight
h8 black rook
a7 black pawn
b7 black pawn
c7 black pawn
d7 black pawn
f7 black pawn
g7 black pawn
h7 black pawn
e5 black pawn
e4 white pawn
f4 white pawn
a2 white pawn
b2 white pawn
c2 white pawn
d2 white pawn
g2 white pawn
h2 white pawn
a1 white rook
b1 white knight
c1 white bishop
d1 white queen
e1 white king
f1 white bishop
g1 white knight
h1 white rook
8
7 7
6 6
5 5
4 4
3 3
2 2
1 1
a b c d e f g h
The King's Gambit

References[edit]

  1. ^ "Test for Unicode support in Web browsers". 

External links[edit]

  • http://js1k.com/2010-first/demo/750 Playable chess in 1024 bytes of javascript. Entry in JS1k competition by Óscar Toledo G. Usage of Unicode Chess symbols enables a playable design and keep the code less than 1024 bytes.