Giter Club home page Giter Club logo

java-racingcar's Introduction

java-racingcar

문자열 덧셈 계산기 / 자동차 경주 게임 미션 저장소

문자열 덧셈 계산기 요구사항

  • 쉼표 또는 콜론을 구분자로 분리해서 숫자의 합을 반환

  • 커스텀 기본 구분자를 지정할 수 있다.

    • //와 \n 사이에 위치하는 문자를 커스텀 구분자로 사용한다.
    • 예시: "//;\n1;2;3" -> 6
  • 숫자 이외의 값 또는 음수를 전달하는 경우 RuntimeException을 throw한다.

자동차 경주 게임 요구사항

  • 각 자동차에 이름을 부여할 수 있다.
    • 자동차 이름은 사용자로부터 문자열 형태로 입력받는다.
    • 입력받은 이름들을 쉼표로 구분하여 이름을 결정한다.
    • 이름은 5자 이하만 가능하다.
    • 이름을 잘못 입력받으면 다시 입력한다.
  • 사용자는 몇 번의 이동을 할 것인지를 입력한다.
    • 0 이상의 정수 이외의 값을 입력하면 다시 입력한다.
  • 자동차는 주어진 횟수동안 전진 또는 멈출 수 있다.
    • 0에서 9 사이에서 random값을 구한 후 그 값이 4이상이면 전진한다.
  • 매 이동마다 상태를 출력한다.
  • 경주를 완료한 후 우승자를 알려준다
    • 우승자는 여려명일 수 있다.

java-racingcar's People

Contributors

pobiconan avatar

Forkers

yelimkim98

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.