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