Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1단계 미션 제출합니다 #7

Open
wants to merge 38 commits into
base: shoeone96
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ebcea49
초기 세팅 및 절차지향 코드 작성
shoeone96 May 18, 2024
2db3fc7
request 전략패턴 도입
shoeone96 May 20, 2024
4161ba5
game client 전략패턴 도입
shoeone96 May 20, 2024
a5116fd
게임 메시지 분리
shoeone96 May 20, 2024
679a6ed
메인 게임 컨트롤러 분리
shoeone96 May 20, 2024
2d4c7cc
response 타입에 따라 선택 가능하게 만들기
shoeone96 May 20, 2024
fe48848
assertj 라이브러리 추가
shoeone96 May 20, 2024
af61d11
game client 의존성 추가
shoeone96 May 20, 2024
68970ce
game message 추가
shoeone96 May 20, 2024
4e331c2
random number를 list를 반환하는 로직 추가
shoeone96 May 20, 2024
f627a75
사람들의 요청을 commandline으로 받는 로직 작성
shoeone96 May 20, 2024
c869d02
game controller에 의존성 포함하는 로직 추가
shoeone96 May 20, 2024
b0ab5c9
random number 반환 테스트
shoeone96 May 20, 2024
a73df14
game box container 생성
shoeone96 May 20, 2024
c1942e8
game controller game box 기준 생성하게 리팩토링
shoeone96 May 20, 2024
f968b3d
BaseBall 전용 Exception 추가
shoeone96 May 24, 2024
d49dde0
game 시작을 위한 컨트롤러 인터페이스 작성
shoeone96 May 24, 2024
60ed1b8
BaseBall Game controller 작성
shoeone96 May 24, 2024
7cafd50
터미널로 숫자 받는 메서드 추가
shoeone96 May 24, 2024
862f008
게임에서 사용하는 메시지 추가
shoeone96 May 24, 2024
dfe5b5c
게임에서 사용되는 에러 메시지 분리 및 새로 추가
shoeone96 May 24, 2024
2ad845c
게임 컨트롤러 생성 후 작동 시키는 방식으로 Main 함수 변경
shoeone96 May 24, 2024
50768b5
client 인터페이스 작성
shoeone96 May 24, 2024
a54458a
baseball 게임 중 validation을 체크해줄 클래스 작성
shoeone96 May 24, 2024
13b8ee8
실제 게임이 동작하는 BaseBall GameClient 작성
shoeone96 May 24, 2024
7ec4783
strike, ball 계산기 작성
shoeone96 May 24, 2024
f3811df
ball strike count 후 반환하는 클래스 작성
shoeone96 May 24, 2024
1af621d
GameBox에서 BaseBall 전용으로 변경
shoeone96 May 24, 2024
53fcf02
게임 중 계속 random Number가 만들어지는 문제 해결
shoeone96 May 24, 2024
4bfe0f0
사용하지 않는 클래스 제거
shoeone96 May 24, 2024
a599c3a
게임 조건에 맞는 순서로 출력하게 변경
shoeone96 May 24, 2024
1c081e2
사용하지 않는 클래스 제거
shoeone96 May 24, 2024
9ea63a0
테스트 케이스 추가
shoeone96 May 24, 2024
3bb156b
테스트 케이스 추가
shoeone96 May 26, 2024
eb6257c
중복 메서드 삭제
shoeone96 May 26, 2024
b5180c9
스캐너는 새로 생성해서 종료하는 방식으로 이용
shoeone96 May 26, 2024
b3dae46
commandline 오류 해결 scanner 지속 생성으로 예외처리 시 무한 루프 현상 발생
shoeone96 May 26, 2024
962494a
input을 받지 못하는 테스트 삭제
shoeone96 May 26, 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
178 changes: 178 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# Created by https://www.toptal.com/developers/gitignore/api/gradle,macos,intellij+iml,java
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,macos,intellij+iml,java

### Intellij+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
.idea

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

### Gradle Patch ###
# Java heap dump
*.hprof

# End of https://www.toptal.com/developers/gitignore/api/gradle,macos,intellij+iml,java
20 changes: 20 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id("java")
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
}

dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core:3.24.2")
}

tasks.test {
useJUnitPlatform()
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Thu May 16 16:24:08 KST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading