DO-54 [Style] Debug.Log 주석 처리

This commit is contained in:
Sehyeon 2025-03-26 17:26:26 +09:00
parent 8096935912
commit 80b050afe0
2 changed files with 8 additions and 18 deletions

View File

@ -60,9 +60,6 @@ public class DoubleThreeCheck : ForbiddenDetectorBase
Enums.PlayerType[] linePattern = ExtractLinePattern(board, row, col, dir1, dir2); Enums.PlayerType[] linePattern = ExtractLinePattern(board, row, col, dir1, dir2);
int centerIndex = 5; // 중앙 인덱스 (현재 위치) int centerIndex = 5; // 중앙 인덱스 (현재 위치)
// 연속된 3 또는 한 칸 떨어진 3 확인
int threePatternCount = 0;
// 연속된 3개 돌 패턴 검사 (●●●) // 연속된 3개 돌 패턴 검사 (●●●)
for (int start = centerIndex - 2; start <= centerIndex; start++) for (int start = centerIndex - 2; start <= centerIndex; start++)
{ {

View File

@ -6,12 +6,9 @@ using UnityEngine;
public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
{ {
// 렌주 룰 금수 감지기 생성 // 렌주 룰 금수 감지기 생성
/*private RenjuOverlineDetector _overlineDetactor = new();
private RenjuDoubleFourDetector _doubleFourDetactor = new();
private RenjuDoubleThreeDetector _doubleThreeDetector = new();*/
// 임시 테스트
private RenjuOverlineDetector _overlineDetactor = new(); private RenjuOverlineDetector _overlineDetactor = new();
/*private RenjuDoubleFourDetector _doubleFourDetactor = new();
private RenjuDoubleThreeDetector _doubleThreeDetector = new();*/
private DoubleFourCheck _doubleFourDetactor = new(); // DoubleFourCheck private DoubleFourCheck _doubleFourDetactor = new(); // DoubleFourCheck
private DoubleThreeCheck _doubleThreeDetector = new(); // DoubleThreeCheck private DoubleThreeCheck _doubleThreeDetector = new(); // DoubleThreeCheck
@ -36,7 +33,7 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
if (_overlineDetactor.IsOverline(board, row, col)) if (_overlineDetactor.IsOverline(board, row, col))
{ {
forbiddenCount++; forbiddenCount++;
Debug.Log("장목 금수 좌표 X축 : " + row + ", Y축 : " + col); // Debug.Log("장목 금수 좌표 X축 : " + row + ", Y축 : " + col);
forbiddenMoves.Add(new Vector2Int(row, col)); forbiddenMoves.Add(new Vector2Int(row, col));
continue; continue;
} }
@ -45,7 +42,7 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
if (_doubleFourDetactor.IsDoubleFour(board, row, col)) if (_doubleFourDetactor.IsDoubleFour(board, row, col))
{ {
forbiddenCount++; forbiddenCount++;
Debug.Log("사사 금수 좌표 X축 : " + row + ", Y축 : " + col); // Debug.Log("사사 금수 좌표 X축 : " + row + ", Y축 : " + col);
forbiddenMoves.Add(new Vector2Int(row, col)); forbiddenMoves.Add(new Vector2Int(row, col));
continue; continue;
} }
@ -56,10 +53,6 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
if (_doubleThreeDetector.IsDoubleThree(board, row, col)) if (_doubleThreeDetector.IsDoubleThree(board, row, col))
{ {
tempForbiddenMoves.Add(new Vector2Int(row, col)); tempForbiddenMoves.Add(new Vector2Int(row, col));
/*if (HasWinningPotential(board, row, col))
{
tempForbiddenMoves.Add(new Vector2Int(row, col));
}*/
// if (!SimulateDoubleFour(tempBoard)) // if (!SimulateDoubleFour(tempBoard))
// { // {
@ -75,7 +68,7 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
board[pos.x, pos.y] = Black; board[pos.x, pos.y] = Black;
if (!SimulateDoubleFour(board) && !SimulateOverline(board)) if (!SimulateDoubleFour(board) && !SimulateOverline(board))
{ {
Debug.Log("X: "+pos.x + "Y: "+ pos.y); // Debug.Log("X: "+pos.x + "Y: "+ pos.y);
forbiddenMoves.Add(new Vector2Int(pos.x, pos.y)); forbiddenMoves.Add(new Vector2Int(pos.x, pos.y));
} }
board[pos.x, pos.y] = Space; board[pos.x, pos.y] = Space;
@ -178,7 +171,7 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
} }
return false; return false;
} }
/*
/// <summary> /// <summary>
/// 보드 상태를 시각적으로 출력하는 디버깅 함수 /// 보드 상태를 시각적으로 출력하는 디버깅 함수
/// </summary> /// </summary>
@ -204,6 +197,6 @@ public class RenjuForbiddenMoveDetector : ForbiddenDetectorBase
} }
return sb.ToString(); return sb.ToString();
} }*/
} }