Coder Social home page Coder Social logo

rock-paper-scissors's Introduction

가위 바위 보 게임

기능 요구사항

  • 가위바위보 게임을 진행하는 프로그램을 구현한다.
  • 게임을 시작하면 컴퓨터는 랜덤하게 가위, 바위, 보 중에서 하나의 선택지로 세팅된다.
  • 유저는 입력값에 따라 가위, 바위, 보 중 하나를 선택할 수 있다.
  • 컴퓨터와 유저의 선택지에 따른 결과를 출력한다.

프로그램 실행 결과

가위 바위 보 게임을 시작합니다.
선택지를 입력해주세요. 가위 = 0, 바위 = 1, 보 = 2
2
컴퓨터의 선택지 : 바위
유저의 선택지 : 보
결과 : 승리

프로그래밍 요구 사항

  • Google Java Style Guide를 참고하여 해당 가이드를 잘 지키도록 노력한다.
  • 들여쓰기 depth는 2이하로 제한한다.
  • 메서드의 길이는 15줄 이하로 제한한다.
  • 가능한 한 하나의 메서드는 하나의 일만 하도록 한다.

미션 진행 방법

1. rock-paper-scissors 저장소를 본인 GitHub 계정으로 fork 한다.

2. fork한 본인 계정 내의 저장소에서, main 브랜치로부터 본인 GitHub 계정과 같은 이름의 브랜치를 만든다.

ex) GitHub 계정 이름이 banjjoknim이라면 fork한 저장소의 main 브랜치에서 banjjoknim 브랜치로 checkout 한 뒤, 미션 진행. 

3. 해당 브랜치에서 미션을 수행한다.

4. 미션을 완료했다면 원본 저장소의 본인 계정과 같은 이름의 브랜치로 Pull Request를 보낸다.

  • 이때, Pull Request는 최초 1회만 진행하면 된다. 그 이후로는 만들어진 Pull Request에서 리뷰가 진행된다.

4-1.

img

4-2.

img_1

4-3.

img_5

4-4.

img_3

5. 미션(또는 피드백 반영)이 완료되었음을 리뷰어에게 고지한다.

6. 리뷰를 통해 피드백을 받았다면 해당 피드백을 반영한 뒤 리뷰어가 해당 Pull RequestMerge 할 때 까지 3 ~ 5의 과정을 반복한다.

  • 아래는 변경점을 Pull Request에 적용하는 과정인데, 어렵지 않다. 그냥 변경하고, 커밋하고, 푸시하면 된다.
  • push 하기 전에 pull을 한번 진행한 뒤, push한다. 그렇지 않을 경우, 아래와 같이 에러가 발생할 수도 있다(첫 번째 사진).
  • push 하기 전에 pull을 한 뒤, 에러 없이 push가 잘 진행되는 모습(두 번째 사진).

img_4 img_6

rock-paper-scissors's People

Contributors

banjjoknim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.