- ScheduledWalk/석천 . . . . 37 matches
IncrementBoardBlockCount();
void IncrementBoardBlockCount() {
void IncrementBoardBlockCount();
IncrementBoardBlockCount();
비슷한 방법으로 IncrementBoardBlockCount 를 구현합니다.
void IncrementBoardBlockCount(int* board, IntPair roachPosition, int maxRow, int maxCol) {
void testIncrementBoardBlockCount() {
IncrementBoardBlockCount(board, currentRoachPosition, 10, 10);
전체 MoveNext 에 대해서 Test Case를 작성합니다. 그러면서 필요한 인자들을 생각해내고, 채워갑니다. MoveNext 에서 필요한 인자들은 GetMoveVector 와 MoveRoach, IncrementBoardBlockCount 에서 필요한 인자들의 총 집합이 됩니다.
testIncrementBoardBlockCount();
MoveNext 부분 test case 를 pass 하기 위해 실제 구현을 합니다. 이미 구현해둔 GetMoveVector, MoveRoach, IncrementBoardBlockCount 들을 조합하는 일만 하면 됩니다.
testIncrementBoardBlockCount();
IncrementBoardBlockCount(board, updatedRoachPosition, maxRow, maxCol);
IncrementBoardBlockCount(board, currentRoachPosition, maxRow, maxCol);
void IncrementBoardBlockCount(int* board, IntPair roachPosition, int maxRow, int maxCol);
void testIncrementBoardBlockCount();
IncrementBoardBlockCount(board, currentRoachPosition, maxRow, maxCol);
testIncrementBoardBlockCount();
IncrementBoardBlockCount(board, updatedRoachPosition, maxRow, maxCol);
void IncrementBoardBlockCount(int* board, IntPair roachPosition, int maxRow, int maxCol) {
Found 1 matching page out of 7555 total pages (5000 pages are searched)
You can also click here to search title.