def is_cross(self, candidate): ''' first check the trace then flip and check the opposite trace ''' return (candidate.trace()+np.fliplr(candidate).trace()) == (candidate.shape[0]*2)