Giter Site home page Giter Site logo

ios-number-baseball's Introduction

Team 2A - Number baseball

Step 1

의사코드 Psudo Code

  1. 프로그램 시작
  2. 메뉴시작
  3. <출력> : “1. 게임시작\n2.게임종료\n원하는 기능 선택해주세요 : “
  4. <입력>
  5. <함수> : 입력 받은 내용이 ‘1’ 또는 ‘2’ 인가?
    1. True -> 6번으로
    2. False -> <출력> : 입력오류 -> 1번으로
  6. <조건> : 입력 받은 내용이 “1” 인가?
    1. True -> 7번으로
    2. False -> 12번으로
  7. 게임시작
  8. <변수 선언 및 변경> (남은기회 = 9)
  9. <변수 선언 및 변경> (컴퓨터, 사용자)
    1. 임의의 숫자 3개 생성 -> 9-2번로
    2. <출력> : 숫자3개를 띄어쓰기로 구분하여 입력해주세요.\n중복 숫자는 허용하지 않습니다.\n입력 : “
    3. <입력>
    4. <함수> : 입력 받은 내용을 숫자 3개로 변환이 유효한가?
      1. 유효 -> 10번으로
      2. 무효 -> 9-2번으로
  10. <조건> : 남은 기회가 0회 인가?
    1. True -> 11번으로
    2. False -> <함수> : 컴퓨터와 사용자의 숫자비교
      1. <출력> : “(스트라이크 수) 스트라이크, (볼) 볼”
      2. <조건> : 스트라이크 > 2
        1. True -> <출력> : “사용자 승리!” -> 11번으로
        2. False -> <변수 선언 및 변경> 남은기회 -= 1 -> 9번으로
  11. 게임종료 -> 메뉴시작
  12. 메뉴종료 -> 프로그램시작

순서도 Flow Chart

image

ios-number-baseball's People

Contributors

keeplo avatar jcrescent61 avatar yagom avatar

Forkers

keeplo

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.