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

Method moveStone

ChessBoard.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void ChessBoard:: moveStone(int moveid, int row, int col)
75{
76 m_ChessPieces[moveid].m_nRow= row;
77 m_ChessPieces[moveid].m_nCol= col;
78
79 m_bIsRed= !m_bIsRed; //换边
80}
81
82bool ChessBoard::sameColor(int moveId,int killId)
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected