Code Monkey home page Code Monkey logo

java-ladder's Introduction

java-ladder 기능 요구사항

입력

  • 참여할 사람 이름을 입력받는다.
    • 이름은 쉼표(,)로 구분한다.
    • 이름의 앞뒤 공백은 제거한다. (ex. "aa" == " aa" )
  • 최대 사다리 높이를 입력받는다.
    • 자연수여야한다.
  • 사다리 게임 실행 결과를 입력받는다.
    • 결과는 쉼표(,)로 구분한다.

출력

  • 이름을 출력한다.
  • 사다리를 출력한다.
  • 결과를 원하는 참여자의 결과를 출력한다.

참여자들 (Players)

  • 참여자 이름 목록을 통해 참여자들을 생성한다.
    • 이름은 중복될 수 없다.
    • 이름은 두명 이상이여야한다.

참여자 (Player)

  • 이름(Name)을 가지고 있다.

이름 (Name)

  • 이름을 의미하는 문자열을 가지고 있다.
    • 이름은 최대 5글자까지 가능하다.

사다리 결과(LadderResult)

  • 사다리 결과를 의미하는 문자열을 가지고 있다.

사다리 게임(LadderGame)

  • 사다리(Ladder)와 참여자들(Players)을 가지고 있다.
    • 사다리 결과 수가 참여자 수와 동일해야한다.
  • 참여자 이름을 가지고 결과를 알려준다.
  • 모든 참여자의 결과를 알려준다.

사다리 (Ladder)

  • 최대 사다리 높이만큼 가로줄(Line)을 가지고 있다.
  • 사용자의 사다리 시작 위치를 통해 사다리 결과 위치를 알려준다.

가로줄 (Line)

  • 가로줄 연결 여부는 생성자에서 정해진다.
  • 사다리가 연결되었는지 여부를 가지고 있다.
    • 연속으로 사다리가 연결되면 안된다.
  • 해당 위치에서 왼쪽으로 연결된 길이 있는지 알려준다.
  • 해당 위치에서 오른쪽으로 연결된 길이 있는지 알려준다.


우아한테크코스 코드리뷰

java-ladder's People

Contributors

kyum-q 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.