Difference between revisions of "Move Representation"
Line 1: | Line 1: | ||
− | The move is represented by a | + | The move is represented by a 16-bit integer |
value with following bit mask. | value with following bit mask. | ||
− | + | ||
− | + | 0000000000111111 - index of square from.<br> | |
− | + | 0000001111000000 - promotion piece (optionally).<br> | |
− | + | 1111110000000000 - index of square to.<br> | |
− | + | ||
− | + | First six bits are used for the description of source square, next four for promotion piece type and last six for destination square. Promotion piece type is | |
− | + | optionaly. | |
− | First six bits are used for the description of | ||
− | source square, next | ||
− | |||
− | |||
− | and | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 07:22, 14 October 2006
The move is represented by a 16-bit integer value with following bit mask.
0000000000111111 - index of square from.
0000001111000000 - promotion piece (optionally).
1111110000000000 - index of square to.
First six bits are used for the description of source square, next four for promotion piece type and last six for destination square. Promotion piece type is optionaly.