🏃‍♀️ 활동

Commentary functions게임 설명하는 함수를 사용할 것사용할 인수score0, score1, 이전의 leading player, leader리턴값현재 leading player(점수가 더 높은 플레이어), print할 메시지 또는 None그냥 메세지 출력하는 함수니까 프로그램상의 문제를 일으키지는 않을 것Problem 6: announce_lead_changes 구현lead가 바뀌는걸 쫓아가는 주석함수이다.leading player가 바뀌면 이 함수는 메시지를 출력한다.leading player가 없거나(== 즉, 두 플레이어의 점수가 똑같다면) 이전 leading player로부터 아무 변화가 없다면 이 함수는 None을 message로 리턴한다.이 함수의 마지막에 두 값을 리턴해야한다.더..
Problem 1~4: 게임 rule구현하기두 명의 플레이어가 번갈아서 최소 100점의 총점이 되면 끝남각 턴마다, 현재 플레이어는 굴릴 주사위의 개수를 최대 10개까지 선택턴 점수는 주사위 결과의 합계임.몇가지 조건이 있음Sow Sad: 아무리 많은 주사위를 던져도 한 번 1이 나오면 그 플레이어의 턴 점수는 1이다.Example 1: The current player rolls 7 dice, 5 of which are 1's. They score 1 point for the turn.Example 2: The current player rolls 4 dice, all of which are 3's. Since Sow Sad did not occur, they score 12 points for the..
녕 지
'🏃‍♀️ 활동' 카테고리의 글 목록 (2 Page)