Code Monkey home page Code Monkey logo

java-racingcar's Introduction

java-racingcar


🚗 자동차

  • 이름을 가질 수 있다.
    • 이름은 5자 이하만 가능하다.
    • 이름은 식별 가능한 문자로 이루어져야 한다.
  • 경주 현황을 기록할 수 있다.

🛞 이동 상태

  • 자동차는 전진과 정지를 할 수 있다.
  • 자동차가 전진할지, 정지할지 판단할 수 있다.

🕹 레이싱 게임

  • 자동차들은 중복된 이름을 가질 수 없다.
  • 자동차들을 전진 혹은 정지시킨다.
  • 우승자를 알아 낼 수 있다.
  • 참가하는 자동차들의 수를 알 수 있다.

🔢 시도 횟수

  • 숫자를 가진다.
    • 숫자는 음수가 될 수 없다.
  • 횟수는 감소될 수 있다.
  • 횟수가 남아있는지 알 수 있다.

❓ 랜덤 값

  • 0에서 9 사이에서 random한 값을 구할 수 있다.

⌨️ 입력

  • 자동차 이름을 입력받는다.
    • 자동차 이름은 쉼표(,)를 기준으로 구분한다.
    • 자동차 이름 앞과 뒤에 공백이 있는경우 제거한다.
  • 몇 번의 이동을 할 것인지를 입력받는다.
    • 입력은 숫자로만 이루어져야한다.

🖥 출력

  • 전진하는 자동차를 출력할 때 자동차 이름을 같이 출력한다.
  • 자동차 경주 게임을 완료한 후 누가 우승했는지를 알려준다. 우승자는 한 명 이상일 수 있다.

우아한테크코스 코드리뷰

java-racingcar's People

Contributors

ho-tea avatar pobiconan avatar woowahan-neo avatar woowahan-pjs 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.