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

Method canMoveCHE

ChessBoard.cpp:860–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860bool ChessBoard::canMoveCHE(int moveId, int killId, int row, int col)
861{
862 Q_UNUSED(killId);
863 int ret = getStoneCountAtLine(m_ChessPieces[moveId].m_nRow, m_ChessPieces[moveId].m_nCol, row, col);
864 if(ret == 0)
865 return true;
866
867 return false;
868}
869
870bool ChessBoard::canMovePAO(int moveId, int killId, int row, int col)
871{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected