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

Method sameColor

ChessBoard.cpp:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool ChessBoard::sameColor(int moveId,int killId)
83{
84 if(moveId== -1 || killId== -1)
85 return false;
86
87 return isRed(moveId)== isRed(killId);
88}
89
90bool ChessBoard::isDead(int id)
91{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected