We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 664e66e commit 6f5ac1fCopy full SHA for 6f5ac1f
models/ChessBoard.php
@@ -163,12 +163,6 @@ function import_fen($fen) {
163
164
// ******* SET FULLMOVE NUMBER *******
165
$this->fullmove_number = $matches[14];
166
-
167
- // ******* SET HALFMOVE NUMBER *******
168
- $this->halfmove_number = $matches[14] * 2 - 1;
169
- if ( $this->color_to_move == ChessPiece::BLACK ) {
170
- $this->halfmove_number++;
171
- }
172
// Short fen. Use default values.
173
} else {
174
0 commit comments