Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e784a55
refactoring: 테스트 코드 사이 줄 추가
suyeon1218 Jun 25, 2024
0da0544
refactoring: 테스트 케이스 명시적으로 작성하기
suyeon1218 Jun 25, 2024
4231bd6
refactoring: 중복 유효성 검사 제거하기
suyeon1218 Jun 25, 2024
d227960
refactoring: 다이스 범위 직관적으로 작성하기
suyeon1218 Jun 25, 2024
b7a06de
refactoring: dice 를 util 함수로 분리하기
suyeon1218 Jun 25, 2024
4d6d200
refactoring: 다이스 유틸 함수로 분리하기
suyeon1218 Jun 27, 2024
fec7e43
refactoring: View 를 하나의 클래스로 만들기
suyeon1218 Jun 27, 2024
550b262
chore: 사용하지 않는 파일 삭제
suyeon1218 Jun 27, 2024
2035dd6
refactoring: MVC 패턴으로 역할 분리하기
suyeon1218 Jun 27, 2024
c0aadea
chore: ESLint & Prettier 세팅
suyeon1218 Jun 27, 2024
c887561
fix: 요구사항에 맞게 출력 수정하기
suyeon1218 Jun 27, 2024
bf700be
feat: 라운드를 사용자가 입력할 수 있도록 한다
suyeon1218 Jun 27, 2024
687fc97
refactoring: 컨트롤러의 역할을 main 으로 변경
suyeon1218 Jun 28, 2024
a67c573
refactoring: CarView -> RaceView로 이름 변경
suyeon1218 Jun 28, 2024
1ebcfbb
refactoring: racing과 관련된 상수 추가
suyeon1218 Jun 28, 2024
1b7e7bb
chore: index.js -> game.js로 상수 파일 이름 변경
suyeon1218 Jun 28, 2024
ab76a79
refactoring: Car 에서 Racer 에 해당하는 역할 분리하기
suyeon1218 Jun 28, 2024
3d679c2
feat: 서브클래스 판별하는 함수 작성
suyeon1218 Jun 28, 2024
f36a994
refactoring: 유틸 함수를 default 값으로 묶기
suyeon1218 Jun 28, 2024
dc8f9c7
feat: Rule 도메인 클래스 작성
suyeon1218 Jun 28, 2024
5dc5e87
refactoring: Race 도메인 모델 작성
suyeon1218 Jun 28, 2024
208ca45
feat: 유틸 함수에 대한 테스트 케이스 작성하기
suyeon1218 Jul 1, 2024
4b2e862
chore: 테스트 파일 이름 변경하기
suyeon1218 Jul 1, 2024
3b44288
fix: 에러 처리를 잘못하던 문제 수정
suyeon1218 Jul 1, 2024
0f3cca6
fix: 룰 유효성 검사 수정하기
suyeon1218 Jul 1, 2024
75520ab
feat: 룰의 키값들을 반환하는 메서드 추가
suyeon1218 Jul 1, 2024
0102bc9
feat: Rule 클래스에 대한 단위 테스트 진행
suyeon1218 Jul 1, 2024
e752de1
feat: move 메서드가 현재 포지션 프로퍼티를 반환하도록 변경
suyeon1218 Jul 1, 2024
54dbb6b
feat: Racer 클래스에 대한 단위 테스트 진행
suyeon1218 Jul 1, 2024
3366cba
feat: 목 데이터 프로퍼티 전달방식 변경
suyeon1218 Jul 1, 2024
837047e
feat: 테스트를 위해 Animal 클래스 구현
suyeon1218 Jul 1, 2024
71db771
feat: Racer 와 round 프로퍼티를 읽기 전용으로 변경
suyeon1218 Jul 1, 2024
fed37f9
fix: rules 프로퍼티 에러검사를 하지 않던 문제 수정
suyeon1218 Jul 1, 2024
2dcc0c2
feat: Race 클래스에 대한 테스트 케이스 구현
suyeon1218 Jul 1, 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"],
}
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"semi": true,
"endOfLine": "lf",
"tabWidth": 2,
"printWidth": 80,
"singleQuote": true,
"bracketSameLine": false,
"bracketSpacing": true,
"arrowParens": "always",
"singleAttributePerLine": true
}
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import globals from "globals";
import pluginJs from "@eslint/js";

import globals from 'globals';
import pluginJs from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
{languageOptions: { globals: {...globals.browser, ...globals.node} }},
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
];
eslintPluginPrettierRecommended,
];
112 changes: 112 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"devDependencies": {
"@eslint/js": "^9.5.0",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"globals": "^15.6.0",
"prettier": "3.3.2",
"vitest": "^1.6.0"
}
}
71 changes: 0 additions & 71 deletions src/__tests__/car.test.js

This file was deleted.

27 changes: 0 additions & 27 deletions src/__tests__/main.test.js

This file was deleted.

Loading