-/// Position::do_setup_move() makes a permanent move on the board. It should
-/// be used when setting up a position on board. You can't undo the move.
-
-void Position::do_setup_move(Move m) {
-
- assert(move_is_ok(m));
-
- StateInfo newSt;
-
- // Update the number of full moves after black's move
- if (sideToMove == BLACK)
- fullMoves++;
-
- do_move(m, newSt);
-
- // Reset "game ply" in case we made a non-reversible move.
- // "game ply" is used for repetition detection.
- if (st->rule50 == 0)
- st->gamePly = 0;
-
- // Our StateInfo newSt is about going out of scope so copy
- // its content before it disappears.
- detach();
-
- assert(is_ok());
-}
-
-