January 2016
Beginner
512 pages
12h 35m
English
Now we will focus on our data structure. Add a new private member to ChessBoard, a vector of characters that will contain information about pieces on the board:
QVector<char> m_boardData;
Consider the following table that shows the piece type and the letters used for it:
|
Piece type |
White |
Black | |
|---|---|---|---|
|
|
King |
K |
k |
|
|
Queen |
Q |
q |
|
|
Rook |
R |
r |
|
|
Bishop |
B |
b |
|
|
Knight |
N |
n |
|
|
Pawn |
P |
P |
You can ...