This repository was archived by the owner on Sep 5, 2023. It is now read-only.
2023 CNS Backend-Assignment#4
Open
yeseong0412 wants to merge 19 commits into2023NewCNSMember:mainfrom
Open
Conversation
기능이 없는 마켓 객체와 유저 객체 생성
코드 가독성을 위하여 println문 따로 저장
아이템 설정 로직 추가
사용자 코인 세팅 로직 추가
exit, permission setting GUI 추가
아이템의 가격도 생각해야하니 HashMap이 맞다 생각하여 수정
권한설정 -> 권한 설정
martGUI : 반복되는 부분 수정 adminGUI : 물건 조회 추가
getCoin : 코인 값 반환 setCoin : 코인 값 설정
addItem : ADMIN 아이템 저장 로직 showItem : 저장된 상품 보여주는 로직 buyItem : 아이템 검색 및 구매 로직 showList : 구매한 물건 조회
Admin 환경에서 조건 수행 로직
만약에 물건을 구매하고 싶은데 물건이 없을 경우를 대비한 조건 추가
유저 페이지 추가 물건 구매, 보유 코인 조회, 권한 설정, 시스템 종료 기능을 수행함
물건 구매 요청 print 추가
안쓰는 코드 삭제
아이템 구매후 코인 재설정
item이 2개라면 잘못된 값을 입력하였습니다가 같이 나오는 현상 수정. > 기존 : 기능은 값이 2가지가 넘어간다면 "잘못된 값을 입력하였습니다가" 출력 > 지금 : 값이 2가지가 넘어가도 정상작동됨.
코드의 가독성을 위하여 if문을 switch문으로 수정함
Contributor
|
과제 확인했습니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1211 양예성 과제 완료하였습니다.