DegreeZdd::DegreeZdd(Board const& quiz, bool kansai) : quiz_(quiz), kansai(kansai), rows(quiz.getRows()), cols(quiz.getCols()), maxLevel( rows * (cols - 1)) { setArraySize(cols); for (finalNumRow = rows - 1; finalNumRow >= 0; --finalNumRow) { for (finalNumCol = cols - 1; finalNumCol >= 0; --finalNumCol) { if (quiz.number[finalNumRow][finalNumCol] > 0) return; } } }
DisplayDeviceFinger::DisplayDeviceFinger(int a_portNum) : TactileArray(a_portNum) { int i, j; for(i=0; i<FINGER_ARRAY_SIZE_X; i++) for(j=0; j<FINGER_ARRAY_SIZE_Y; j++) m_array[i][j] = j*FINGER_ARRAY_SIZE_X + i; int totalSize = FINGER_ARRAY_SIZE_X*FINGER_ARRAY_SIZE_Y; // Need to change the protocol between the PC and the microcontroller. // Since the last two values have problem, I just added two more values and just used all without the last two. setArraySize(1, totalSize+11); }
/** * Constructor. * @param quiz matrix of number pairs. */ DegreeZdd(Board const& quiz) : quiz(quiz), top_level(quiz.rows * (quiz.cols - 1)) { setArraySize(quiz.cols); }