All pastes #428269 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-04-07 12:54 UTC
rendered paste body
if(this->getPiece(selection->x, selection->y)->getSide() != this->getPiece(target_x, target_y)->getSide() || this->getPiece(target_x, target_y)->getType() == EMPTY) {	this->findPiece(WHITE_BISHOP, whiteBishop);        cout << "After confirming location and side: " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl;                        if(!this->isChecked(selection, target_x, target_y)) {        	this->findPiece(WHITE_BISHOP, whiteBishop);                cout << "After isChecked(false): " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl;                *rockade = false;                return true;        }                	this->findPiece(WHITE_BISHOP, whiteBishop);        cout << "After isChecked(true): " << this->getPiece(whiteBishop->x, whiteBishop->y)->getSide() << endl;}