Skip to content

Comments

[BE] ์ธ์ง€์›๐Ÿ‘† ์—…๋‹ค์šด#13

Open
jiixon wants to merge 13 commits intoLeets-Official:mainfrom
jiixon:jiixon
Open

[BE] ์ธ์ง€์›๐Ÿ‘† ์—…๋‹ค์šด#13
jiixon wants to merge 13 commits intoLeets-Official:mainfrom
jiixon:jiixon

Conversation

@jiixon
Copy link
Member

@jiixon jiixon commented Apr 18, 2024

๊ธฐ๋Šฅ ์š”๊ตฌ์‚ฌํ•ญ

๊ฐ์ฒด๋ณ„ ์—ญํ• 

View
Input

  • ๊ฒŒ์ž„ ๋ฒ„์ „(์˜์–ด/์ˆซ์ž)์ž…๋ ฅ ๋ฐ›๊ธฐ
  • ์ˆซ์ž ์ž…๋ ฅ๋ฐ›๊ธฐ
  • ์˜์–ด ์ž…๋ ฅ๋ฐ›๊ธฐ

Output

  • ๊ฒŒ์ž„ ์‹œ์ž‘ ๋ฌธ๊ตฌ ์ถœ๋ ฅ
  • UP/DOWN ๊ฒฐ๊ณผ ์ถœ๋ ฅ
  • ์ •๋‹ต์ด๋ฉด ์ •๋‹ต๋ฌธ๊ตฌ ์ถœ๋ ฅ
  • ์‹œ๋„ํ™˜ ํšŸ์ˆ˜ ์ถœ๋ ฅ

Controller

  • ๊ฒŒ์ž„ ์‹œ์ž‘
  • ์ž…๋ ฅ๊ฐ’ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ

Model

  • ๋žœ๋ค์ˆ˜ ์ƒ์„ฑ
  • ๋žœ๋ค์ˆ˜๋ณด๋‹ค ์ž…๋ ฅ๊ฐ’์ด ํฌ๋ฉด UP ํŒ๋‹จ
  • ๋žœ๋ค์ˆ˜๋ณด๋‹ค ์ž…๋ ฅ๊ฐ’์ด ์ž‘์œผ๋ฉด DOWN ํŒ๋‹จ
  • ๋žœ๋ค์ˆ˜๊ฐ€ ์ž…๋ ฅ๊ฐ’๊ณผ ๊ฐ™์œผ๋ฉด ๊ฒŒ์ž„ ์ข…๋ฃŒ
  • ์‹œ๋„ํšŸ์ˆ˜ ํŒ๋‹จ

์—๋Ÿฌ์ฒ˜๋ฆฌ

  • ๋ฒ„์ „ ์ด์™ธ์˜ ๊ฐ’ ์ž…๋ ฅ
    :[ERROR] ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๋ฒ„์ „์ž…๋‹ˆ๋‹ค.
  • ๋ฒ”์œ„ ๋ฐ–์˜ ์ˆซ์ž ์ž…๋ ฅ
    :[ERROR] ๋ฒ”์œ„ ๋‚ด์˜ ์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.
  • ๋ฒ”์œ„ ๋ฐ–์˜ ์•ŒํŒŒ๋ฒณ ์ž…๋ ฅ
    :[ERROR] ๋ฒ”์œ„ ๋‚ด์˜ ์•ŒํŒŒ๋ฒณ์„ ์ž…๋ ฅํ•˜์„ธ์š”.
  • ๋‹ค๋ฅธ ํƒ€์ž…์˜ ์ž…๋ ฅ๊ฐ’ ์ž…๋ ฅ
    :[ERROR] ์ž…๋ ฅ ๋ฌธ์ž์˜ ํƒ€์ž…์ด ๋งž์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

@jiixon jiixon self-assigned this Apr 18, 2024
Comment on lines +1 to +4
package leets.land.constants;

public class Constants {
}
Copy link
Member

Choose a reason for hiding this comment

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

์ด๋ถ€๋ถ„์—์„œ ์–ด๋–ค ๋‚ด์šฉ์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๊ณ  ์‹ถ์œผ์…จ๋˜๊ฑด์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค !!

Comment on lines +18 to +24
if(version == 1){
numberPlay();
}else if( version == 2) {
alphabetPlay();
}else{
outputView.printErrorMessage("์กด์žฌํ•˜์ง€ ์•Š๋Š” ๋ฒ„์ „์ž…๋‹ˆ๋‹ค.");
play();
Copy link
Member

Choose a reason for hiding this comment

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

์˜ˆ์™ธ ๋ฉ”์‹œ์ง€๋ฅผ ์ถœ๋ ฅํ•˜๊ธฐ๋ณด๋‹ค ์˜ˆ์™ธ๋ฅผ ์žก๊ณ  ๋‹ค์‹œ ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ–๋Š” ๋กœ์ง์„ ๊ตฌ์ƒํ•ด๋ณด์‹œ๋Š”๊ฑด ์–ด๋–จ๊นŒ์š”?


public void play(){
outputView.printStart();
int version = inputView.getVersion();
Copy link

Choose a reason for hiding this comment

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

๋ฒ„์ „์ด ๋‹ค๋ฅผ ๋•Œ์™€ ํƒ€์ž…์ด ๋‹ค๋ฅผ ๋•Œ์˜ ๋ฒ„์ „์„ ์จ์ฃผ์‹œ๋ฉด ์ข‹์„๊ฑฐ๊ฐ™์•„์š”!!

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.

4 participants