Skip to content

Commit

Permalink
fix: 시간표 룰 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
DWL21 committed Feb 8, 2025
1 parent 39996a3 commit 4454e2f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ class TimetableCandidates(
}

private fun timetableRules(timetableCandidate: TimetableCandidate): Boolean {
return timetableCandidate.isCorrect() && timetableCandidate.isCorrectCreditRule() && timetableCandidate.hasOverlappingCourseTimes()
val isCorrect = timetableCandidate.isCorrect()
val isCorrectCreditRule = timetableCandidate.isCorrectCreditRule()
val hasOverlappingCourseTimes = timetableCandidate.hasOverlappingCourseTimes()
return isCorrect && isCorrectCreditRule && !hasOverlappingCourseTimes
}

fun pickTopNOfFinalScores(n: Int, maximumTagLimit: Int): TimetableCandidates {
Expand Down

0 comments on commit 4454e2f

Please sign in to comment.