| 96 | } |
| 97 | |
| 98 | int ChessBoard::getStoneId(int row, int col) |
| 99 | { |
| 100 | for(int i=0; i<32; ++i) |
| 101 | { |
| 102 | if(m_ChessPieces[i].m_nRow == row && m_ChessPieces[i].m_nCol == col && !isDead(i)) |
| 103 | return i; |
| 104 | } |
| 105 | |
| 106 | return -1; |
| 107 | } |
| 108 | |
| 109 | int ChessBoard::getStoneCountAtLine(int row1, int col1, int row2, int col2) |
| 110 | { |
nothing calls this directly
no outgoing calls
no test coverage detected