Skip to content

Comments

[BE] λ‚˜μ•„μ—° πŸ‘₯ 였늘의 짝꿍은? #9

Open
ay-eonii wants to merge 40 commits intoLeets-Official:ay-eoniifrom
ay-eonii:ay-eonii
Open

[BE] λ‚˜μ•„μ—° πŸ‘₯ 였늘의 짝꿍은? #9
ay-eonii wants to merge 40 commits intoLeets-Official:ay-eoniifrom
ay-eonii:ay-eonii

Conversation

@ay-eonii
Copy link
Member

@ay-eonii ay-eonii commented Apr 10, 2024

λ―Έμ…˜ μ‹€ν–‰ κ²°κ³Ό

ν…ŒμŠ€νŠΈ λ³€κ²½ ζœ‰
image

μ‹€ν–‰ 터미널
image

κΈ°λŠ₯ λͺ…μ„Έμ„œ

μž…λ ₯

  • μ°Έμ„μžλ“€μ˜ 이름을 μž…λ ₯ λ°›λŠ”λ‹€
    • , 둜 κ΅¬λΆ„ν•œλ‹€.
    • ν•œκΈ€μ΄ μ•„λ‹ˆλΌλ©΄ μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.
    • 이름은 쀑볡될 수 μ—†λ‹€.
  • μ΅œλŒ€ 짝(κ·Έλ£Ή) 인원 수λ₯Ό μž…λ ₯ λ°›λŠ”λ‹€.
    • μˆ«μžκ°€ μ•„λ‹ˆλΌλ©΄ μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.
    • 이름 수 < μ΅œλŒ€ 짝(κ·Έλ£Ή) 인원 수인 경우 μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.
  • μž¬μΆ”μ²œ μ—¬λΆ€λ₯Ό μž…λ ₯ λ°›λŠ”λ‹€.
    • y λ˜λŠ” n κ°€ μ•„λ‹ˆλΌλ©΄ μ˜ˆμ™Έκ°€ λ°œμƒν•œλ‹€.

좜λ ₯

  • 짝 μΆ”μ²œ κ²°κ³Όλ₯Ό 좜λ ₯ν•œλ‹€
    • [ 이름1 | ... | 이름2 ] ν˜•μ‹μœΌλ‘œ 좜λ ₯ν•œλ‹€.
  • μ˜ˆμ™ΈλŠ” [ERROR]와 λ©”μ‹œμ§€λ₯Ό ν•¨κ»˜ 좜λ ₯ν•œλ‹€.

μ‚¬λžŒ

  • 이름은 5κΈ€μž 이내이닀.

짝

  • μ΅œλŒ€ 짝 μˆ˜λŠ” μ‚¬λžŒ μˆ˜λ³΄λ‹€ μž‘κ±°λ‚˜ κ°™μ•„μ•Ό ν•œλ‹€.

λ§€μΉ­

  • 랜덀으둜 λ§€μΉ­ν•œλ‹€.

ay-eonii added 30 commits April 6, 2024 20:06
@ay-eonii ay-eonii self-assigned this Apr 10, 2024
Copy link
Member

@taeseokyang taeseokyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ–΄λ‚˜λ” 레벨

this.hasRetry = hasRetry;
}

public static RetryOpinion match(String input) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ½”λ“œ λ©‹μ§‘λ‹ˆλ‹€

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taeseokyang 뭐야 저도 λ¦¬λ·°ν•΄μ€˜μš”

Copy link
Member

@taeseokyang taeseokyang Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ay-eonii μ•„ λ„ˆλ¬΄ 쒋은데;; ν΄λž˜μŠ€κ°€ λ§Žλ‹€λŠ” 생각이 λ“­λ‹ˆλ‹€! pairCount 와 pairCountValidator λ“±λ“±μ˜ κ΄€λ ¨ κΈ°λŠ₯듀을 ν•œ 클래슀둜 ν•©μΉ˜λŠ” 것은 μ–΄λ–€κ°€μš”? 가독성에 였히렀 μ•ˆμ’‹μ€ 영ν–₯이 λ μˆ˜λ„ μžˆμ§€ μ•Šμ„κΉŒ μƒκ°ν•©λ‹ˆλ‹€.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

쒋은 μ§€μ μ΄μ—μš”! 사싀 pairCount의 μ΄ˆκΈ°ν™”κ³Όμ •(μƒμ„±μž)μ—μ„œ μ²˜λ¦¬ν•˜κ³  μ‹Άμ—ˆλŠ”λ°, μƒμ„±μž νŒŒλΌλ―Έν„°λ‘œ 멀버 수(namesCount)λ₯Ό ν•¨κ»˜ λ„˜κ²¨μ£ΌλŠ” 것에 고민이 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. μƒμ„±μžκ°€ κ°€μ§€λŠ” λ©€λ²„λ³€μˆ˜κ°€ μ•„λ‹Œλ° μƒμ„±μž νŒŒλΌλ―Έν„°μ— ν•¨κ»˜ λ„£μ–΄μ£Όλ©΄ 였히렀 μ½”λ“œλ₯Ό μ΄ν•΄ν•˜λŠ”λ° 더 λ§Žμ€ λΉ„μš©μ΄ λ“€μ§€ μ•Šμ„κΉŒ ν–ˆμŠ΅λ‹ˆλ‹€! κ·Έλž˜μ„œ κ²€μ¦ν•˜λŠ” 역할을 κ°€μ§„ pairCountValidatorλ₯Ό λ§Œλ“€κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€

λ§Žμ€ 클래슀 vs 무슨 역할인지 λͺ¨λ₯Ό μƒμ„±μž νŒŒλΌλ―Έν„°

μ–΄λ–€ 게 더 λ‚˜μ„κΉŒμš”πŸ₯²

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants