Git Product home page Git Product logo

modutf's Introduction

AIFFEL Campus Online 4th Code Peer Review Templete

  • 코더 : 이영빈, 허남철
  • 리뷰어 : 조웅제

PRT(PeerReviewTemplate)

각 항목을 스스로 확인하고 토의하여 작성한 코드에 적용합니다.

  • 코드가 정상적으로 동작하고 주어진 문제를 해결했나요?

  • 주석을 보고 작성자의 코드가 이해되었나요?

    본인이 작성한 기능에 대한 주석이 적절히 달려 있었습니다.

    - [x] # 1. 플레이어수 입력
    
      n = int(input("플레이어수 를 입력하세요"))
      n_list = [0 for _ in range(n)]
    
    # 순서구현
    
    start = 0
    while True:
        result = False
        a = start % n # i 차례번호
        value_dice = roll_dice()
        board(a,n_list, value_dice)
        
    
    # 2. 차례로 주사위 던지기
    
    # 3. 이동 경로 출력
    
    # 4. 승리 조건 판단
    
        for i in n_list:
            if i >= 100 :
                print(f"{chr(a+65)}가 승리")# 승리문 출력
                result = True
        if result:
            break
        start += 1
  • 코드가 에러를 유발할 가능성이 없나요?

    에러가 예상되는 지점은 없습니다.

  • 코드 작성자가 코드를 제대로 이해하고 작성했나요?

    코드 구현 및 추가적인 기능에 대한 내용도 작성했습니다.

  • 코드가 간결한가요?

    기능을 함수 및 반복문으로 작성하다 보니 코드가 간결하진 않습니다 :(

    # 보드 구현
    def board(i, n_list, value_dice):
        print('------')
        if value_dice == 0: # 낙
            print(f'{chr(i+65)}가 주사위는 "낙"입니다.')
        else: # 낙이 아닌경우
            print(f'{chr(i+65)}가 주사위 값으로 {value_dice}를 던졌습니다.')
            n_list[i] += value_dice
            if str(n_list[i]) in jump.keys():
               if n_list[i] > jump[str(n_list[i])]:
                    print("뱀을 만났다 ㅜㅜ")
                    print(f'{n_list[i]} 에서 {jump[str(n_list[i])]} 로 이동!')
                else:
                    print("파이프를 타고 올라가자 야호 !!")
                    print(f'{n_list[i]} 에서 {jump[str(n_list[i])]} 로 이동!')
                n_list[i] = jump[str(n_list[i])]
        print(n_list)
        return n_list

modutf's People

Contributors

yblee110 avatar wjjoo 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.