9-3 海のうわさ③

解説動画

解答コード

function pillar(height: number) {
for (let i = 0; i < height; i++) { agent.place(FORWARD); agent.move(UP, 1); } } function wall2(height: number, width: number) { for (let j = 0; j < width; j++) { pillar(height); agent.move(DOWN, height); agent.move(RIGHT, 1); } } player.onChat("9-3", function (height, width) { wall2(height, width); });