fen: 交换Phrase和sideToMove位置
This commit is contained in:
parent
5854bce2d9
commit
93dd3ba971
|
@ -341,6 +341,11 @@ const string Position::fen() const
|
|||
}
|
||||
}
|
||||
|
||||
// Active color
|
||||
ss << (sideToMove == WHITE ? "w" : "b");
|
||||
|
||||
ss << " ";
|
||||
|
||||
// Phrase
|
||||
switch (phase) {
|
||||
case PHASE_NONE:
|
||||
|
@ -363,9 +368,6 @@ const string Position::fen() const
|
|||
break;
|
||||
}
|
||||
|
||||
ss << " ";
|
||||
// Active color
|
||||
ss << (sideToMove == WHITE ? "w" : "b");
|
||||
ss << " ";
|
||||
|
||||
// http://www.xqbase.com/protocol/pgnfen2.htm
|
||||
|
|
Loading…
Reference in New Issue