Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
87a94c0
build: eslint & prettier 세팅
suyeon1218 Jul 5, 2024
bff324c
chore: 불필요한 테스트 파일 삭제
suyeon1218 Jul 9, 2024
3a47b4f
feat: View 클래스 작성
suyeon1218 Jul 9, 2024
23d2915
feat: 돈을 콤마가 있는 문자열로 변경하는 유틸 함수 작성
suyeon1218 Jul 9, 2024
1465cce
feat: readline 유틸함수 작성
suyeon1218 Jul 9, 2024
a3ca1f4
refactoring: 유틸 함수 이름 변경
suyeon1218 Jul 9, 2024
42993bf
feat: 랜덤 번호를 생성해주는 유틸함수 작성
suyeon1218 Jul 9, 2024
5ec290a
feat: 배열 타입과 관련된 유틸함수 작성
suyeon1218 Jul 9, 2024
a49de74
feat: Lotto 클래스 작성
suyeon1218 Jul 9, 2024
aefd1e2
feat: LottoRule 클래스 작성
suyeon1218 Jul 9, 2024
28bd6f2
feat: WinLotto 클래스 작성
suyeon1218 Jul 9, 2024
68aa915
feat: main 클래스 작성
suyeon1218 Jul 9, 2024
40e6b10
fix: 잘못된 메서드 호출 수정하기
suyeon1218 Jul 9, 2024
34d906c
fix: WinLotto 의 checkRank 메섣드가 제대로 동작하지 않는 문제 수정
suyeon1218 Jul 9, 2024
fdc615b
feat: WinLotto 의 getBonusNumberError 가 유효성 검사가 되지 않는 문제 수정
suyeon1218 Jul 9, 2024
445e96e
feat: WinLotto 클래스에 대한 단위 테스트 작성
suyeon1218 Jul 9, 2024
c1a7621
fix: Lotto 초기화 인스턴스가 올바른 값이 아닐 경우 에러를 반환하도록 수정
suyeon1218 Jul 9, 2024
eacbbfc
feat: Lotto 클래스에 대한 테스트 케이스 작성
suyeon1218 Jul 9, 2024
25ddc4b
feat: LottoRule 에 대한 테스트 케이스 작성
suyeon1218 Jul 9, 2024
918b2d8
init: 폴더 초기화
suyeon1218 Jul 10, 2024
6d9a947
feat: validator 를 만드는 createValidator 함수 구현
suyeon1218 Jul 11, 2024
0dd9649
refactoring: 매개변수 타입에 따라 프로퍼티 분리하기
suyeon1218 Jul 12, 2024
db61a56
feat: validator 함수 사용시 타입:값 형태로 사용할 수 있도록 하기
suyeon1218 Jul 12, 2024
1b52b54
feat: Input 클래스 기능 구현
suyeon1218 Jul 12, 2024
1e5dd8b
refactoring: validator 폴더 분리
suyeon1218 Jul 12, 2024
0403738
chore: InputValidator 경로 수정
suyeon1218 Jul 12, 2024
6a37410
chore: createValidator 폴더 경로 변경
suyeon1218 Jul 12, 2024
33cc2fa
feat: OutputValidator 객체 구현
suyeon1218 Jul 12, 2024
f8626a8
feat: Output 클래스 기능 구현
suyeon1218 Jul 12, 2024
e0ddf1b
chore: cretaeValidator 의 변경된 경로로 수정하기
suyeon1218 Jul 12, 2024
09f8027
feat: 프로퍼티와 관련없는 메서드는 정적 메서드로 전환
suyeon1218 Jul 12, 2024
b39eaa7
feat: View 클래스 구현
suyeon1218 Jul 12, 2024
8a08be9
feat: Lotto 가 여러 방식으로 초기화될 수 있도록 다형성을 고려하여 구현하기
suyeon1218 Jul 12, 2024
a42dd9b
chore: Prettier 설정 추가
suyeon1218 Jul 12, 2024
d295ddf
feat: Lotto 초기화 시 유효성 검사하는 기능 구현
suyeon1218 Jul 12, 2024
368e2da
refactoring: validator 프로퍼티 일관성 있게 변경
suyeon1218 Jul 13, 2024
caceb34
feat: 로또 번호 가져오는 기능 구현
suyeon1218 Jul 13, 2024
8c1fe70
feat: 외부에서 validator 프로퍼티에 접근하지 못하게 변경
suyeon1218 Jul 14, 2024
9dffa3a
fix: lotto 의 번호 범위 체크가 이뤄지지 않는 문제 수정
suyeon1218 Jul 14, 2024
0b7634b
feat: WinLotto 테스트 기반 기능 구현
suyeon1218 Jul 15, 2024
7355163
feat: Lotto 메서드 기능 분리
suyeon1218 Jul 15, 2024
bf12427
refactoring: readLine 유틸함수를 default 변수로 내보내도록 변경
suyeon1218 Jul 15, 2024
2c4b9be
refactoring: LottoValidator 에서 공통 유효성 검사와 기본 로또, 우승 로또를 구분하기
suyeon1218 Jul 15, 2024
892eaf0
feat: Lotto 의 세팅과 관련된 객체 선언
suyeon1218 Jul 15, 2024
309a230
feat: 재시작 여부에 관한 유효성 검사 추가
suyeon1218 Jul 15, 2024
bdfaeb0
refactoring: 랜덤 배열을 생성하는 역할을 LottoRule 에서 처리하도록 변경
suyeon1218 Jul 15, 2024
7dc05e4
feat: WinLotto 클래스에서 로또 결과를 출력하는 기능 구현
suyeon1218 Jul 15, 2024
f0dd84c
feat: controller 호출하는 기능 구현
suyeon1218 Jul 15, 2024
940c02e
feat: LottoController 기능 구현
suyeon1218 Jul 15, 2024
1f36f47
refactoring: LottoRule 에서 당첨결과 정보를 담고있는 객체 구조 수정
suyeon1218 Jul 15, 2024
ebefaeb
feat: view 의 당첨금액을 외부에서 주입할 수 있도록 변경
suyeon1218 Jul 15, 2024
2628983
fix: input Validate 프로퍼티에 선언 전의 값을 넣어주던 문제 수정
suyeon1218 Jul 15, 2024
f84caac
fix: Input 클래스 오류 수정
suyeon1218 Jul 15, 2024
b44fada
fix: InputValidator 에러 해결
suyeon1218 Jul 15, 2024
d56821f
fix: generateRandomNumber 동작 수정
suyeon1218 Jul 15, 2024
f4f5efb
fix: lotto 인스턴스가 생성되지 않던 문제 수정
suyeon1218 Jul 15, 2024
b348695
fix: Output 클래스 오타 수정
suyeon1218 Jul 15, 2024
656ac44
feat: 로또 출력시 대괄호 추가
suyeon1218 Jul 15, 2024
9bc8407
feat: 로또 구매 개수 콘솔 출력 기능 추가
suyeon1218 Jul 15, 2024
d62b255
fix: 당첨 번호 받아오는 메서드 이름 통일
suyeon1218 Jul 15, 2024
925ae3e
fix: LottoController 클래스 오타 수정
suyeon1218 Jul 15, 2024
72b901c
fix: 당첨 번호와 보너스 번호에 대해 유효성 검사를 제대로 하지 않는 문제 수정
suyeon1218 Jul 15, 2024
c8368c3
fix: WinLotto 에러 해결
suyeon1218 Jul 15, 2024
1b83b71
feat: LottoRule 의 우승 정보에 none 프로퍼티 추가하기
suyeon1218 Jul 15, 2024
e3c43be
fix: LottoController 오타 수정
suyeon1218 Jul 15, 2024
c4947be
fix: Lotto 클래스 메서드 수정
suyeon1218 Jul 15, 2024
f1d6bf4
refactoring: View 메서드 이름 수정
suyeon1218 Jul 15, 2024
ad492b7
fix: WinLotto 메서드 수정
suyeon1218 Jul 15, 2024
70a7edc
fix: LottoController 에러 수정
suyeon1218 Jul 15, 2024
a5f8aa1
feat: winLotto 함수에 대한 테스트 코드 작성
suyeon1218 Jul 15, 2024
c9c33cd
feat: getWinningResult 가 여러 형태의 lottos 를 받도록 수정
suyeon1218 Jul 15, 2024
d85cb81
feat: 콤마로 숫자 구분해서 출력하도록 수정
suyeon1218 Jul 15, 2024
b16ed8e
fix: prizes 가 제대로 출력되지 못하던 문제 수정
suyeon1218 Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["plugin:prettier/recommended"],
}
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"endOfLine": "lf",
"tabWidth": 2,
"printWidth": 80,
"singleQuote": true,
"bracketSameLine": false,
"bracketSpacing": true,
"arrowParens": "always",
"singleAttributePerLine": true,
"quoteProps": "as-needed",
"trailingComma": "all"
}
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
eslintPluginPrettierRecommended,
];
Loading