MCPcopy Create free account
hub / github.com/XMuli/ChineseChess / unFakeMove

Method unFakeMove

MachineGame.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void MachineGame::unFakeMove(ChessStep *step)
90{
91 if (step->m_nKillID != -1)
92 m_ChessPieces[step->m_nKillID].m_bDead = false;
93
94 m_ChessPieces[step->m_nMoveID].m_nRow = step->m_nRowFrom;
95 m_ChessPieces[step->m_nMoveID].m_nCol = step->m_nColFrom;
96 m_bIsRed = !m_bIsRed;
97}
98
99// 位置评估表(黑方视角,row 0-9, col 0-8)
100// 马的位置分

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected