short promoteTo, i.e. q instead of queen

This commit is contained in:
DHTMLGoodies
2017-01-31 02:34:14 +01:00
parent 8e35529117
commit 5fe2491d1f
2 changed files with 20 additions and 20 deletions

View File

@@ -47,10 +47,10 @@ class Board0x88Config{
);
public static $pieceAbbr = array(
'Q' => 'queen',
'R' => 'rook',
'N' => 'knight',
'B' => 'bishop'
'Q' => 'q',
'R' => 'r',
'N' => 'n',
'B' => 'b'
);
public static $numberToSquareMapping = array(
@@ -137,12 +137,12 @@ class Board0x88Config{
);
public static $typeToNumberMapping = array(
'pawn' => 0x01,
'knight' => 0x02,
'king' => 0x03,
'bishop' => 0x05,
'rook' => 0x06,
'queen' => 0x07
'p' => 0x01,
'n' => 0x02,
'k' => 0x03,
'b' => 0x05,
'r' => 0x06,
'q' => 0x07
);