From da57e0366827715a4143bba84f3b6c2a70595cbf Mon Sep 17 00:00:00 2001 From: ho94949 Date: Thu, 7 May 2026 09:06:17 +0700 Subject: [PATCH 1/2] Added Mushroom game AI Codes --- src/routes/2025-codebattle/online_p.mdx | 21 ++++++++++++--------- src/routes/en/2025-codebattle/online_p.mdx | 20 +++++++++++--------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/routes/2025-codebattle/online_p.mdx b/src/routes/2025-codebattle/online_p.mdx index 71f109c7..13b0d351 100644 --- a/src/routes/2025-codebattle/online_p.mdx +++ b/src/routes/2025-codebattle/online_p.mdx @@ -77,15 +77,18 @@ codebattle: true 샘플 AI의 전략은 아래와 같습니다. -| 배틀 번호 | 설명 | -| --------- | --------------------------------------------------- | -| 1 / 2 | 자기의 턴에 항상 "패스"만 합니다. | -| 3 / 4 | 제공된 예제 코드와 같은 동작을 수행합니다. | -| 5 / 6 | 게임 시뮬레이터 샘플 AI 핑크빈의 전략을 사용합니다. | -| 7 / 8 | 중간 난이도의 방어형 전략을 사용합니다. | -| 9 / 10 | 중간 난이도의 공격형 전략을 사용합니다. | -| 11 / 12 | 어려운 난이도의 방어형 전략을 사용합니다. | -| 13 / 14 | 어려운 난이도의 공격형 전략을 사용합니다. | +| 배틀 번호 | 설명 | 코드 | +| --------- | --------------------------------------------------- | :-- | +| 1 / 2 | 자기의 턴에 항상 "패스"만 합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI1.rs) | +| 3 / 4 | 제공된 예제 코드와 같은 동작을 수행합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI2.rs) | +| 5 / 6 | 게임 시뮬레이터 샘플 AI 핑크빈의 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI3.rs) | +| 7 / 8 | 중간 난이도의 방어형 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI4.rs) | +| 9 / 10 | 중간 난이도의 공격형 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI5.rs) | +| 11 / 12 | 어려운 난이도의 방어형 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI6.rs) | +| 13 / 14 | 어려운 난이도의 공격형 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI7.rs) | + +> 샘플 AI 코드는 실제 대회 진행 시에는 제공되지 않았습니다. + ## 시각화 도구 (샘플 AI / 번갈아 플레이하기 / 로그 분석) diff --git a/src/routes/en/2025-codebattle/online_p.mdx b/src/routes/en/2025-codebattle/online_p.mdx index 0f9157db..533506c1 100644 --- a/src/routes/en/2025-codebattle/online_p.mdx +++ b/src/routes/en/2025-codebattle/online_p.mdx @@ -77,15 +77,17 @@ The program will play **2 matches against each sample AI**, alternating between The strategies of the sample AIs are as follows: -| Battle No. | Description | -| ---------- | ------------------------------------------------------------- | -| 1 / 2 | Always "Passes" on its turn. | -| 3 / 4 | Uses the same strategy as provided in the sample code. | -| 5 / 6 | Uses the strategy of the game simulator sample AI, Pink Bean. | -| 7 / 8 | Uses a medium-level defensive strategy. | -| 9 / 10 | Uses a medium-level offensive strategy. | -| 11 / 12 | Uses a high-level defensive strategy. | -| 13 / 14 | Uses a high-level offensive strategy. | +| Battle No. | Description | Code | +| ---------- | ------------------------------------------------------------- | :--- | +| 1 / 2 | Always "Passes" on its turn. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI1.rs) | +| 3 / 4 | Uses the same strategy as provided in the sample code. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI2.rs) | +| 5 / 6 | Uses the strategy of the game simulator sample AI, Pink Bean. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI3.rs) | +| 7 / 8 | Uses a medium-level defensive strategy. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI4.rs) | +| 9 / 10 | Uses a medium-level offensive strategy. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI5.rs) | +| 11 / 12 | Uses a high-level defensive strategy. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI6.rs) | +| 13 / 14 | Uses a high-level offensive strategy. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI7.rs) | + +> Note: Sample AI codes were not provided during the actual contest. ## Visualization Tools (Sample AI / Two-Player / Log Analysis) From 6dc7d88f507065da2096243bbaae5d3c2f1e729c Mon Sep 17 00:00:00 2001 From: ho94949 Date: Thu, 7 May 2026 09:10:26 +0700 Subject: [PATCH 2/2] lint --- src/routes/2025-codebattle/online_p.mdx | 5 ++--- src/routes/en/2025-codebattle/online_p.mdx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/routes/2025-codebattle/online_p.mdx b/src/routes/2025-codebattle/online_p.mdx index 13b0d351..52a3d4f1 100644 --- a/src/routes/2025-codebattle/online_p.mdx +++ b/src/routes/2025-codebattle/online_p.mdx @@ -77,8 +77,8 @@ codebattle: true 샘플 AI의 전략은 아래와 같습니다. -| 배틀 번호 | 설명 | 코드 | -| --------- | --------------------------------------------------- | :-- | +| 배틀 번호 | 설명 | 코드 | +| --------- | --------------------------------------------------- | :------------------------------------------------------------------------------------------------------ | | 1 / 2 | 자기의 턴에 항상 "패스"만 합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI1.rs) | | 3 / 4 | 제공된 예제 코드와 같은 동작을 수행합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI2.rs) | | 5 / 6 | 게임 시뮬레이터 샘플 AI 핑크빈의 전략을 사용합니다. | [코드](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI3.rs) | @@ -89,7 +89,6 @@ codebattle: true > 샘플 AI 코드는 실제 대회 진행 시에는 제공되지 않았습니다. - ## 시각화 도구 (샘플 AI / 번갈아 플레이하기 / 로그 분석) 게임을 샘플 AI와 플레이, 두 명이 번갈아가면서 플레이 해 볼 수 있고, 게임의 시뮬레이터 및 테스팅 툴이 출력한 로그를 시각화하는 시각화 도구를 사용할 수 있습니다. diff --git a/src/routes/en/2025-codebattle/online_p.mdx b/src/routes/en/2025-codebattle/online_p.mdx index 533506c1..b43edeca 100644 --- a/src/routes/en/2025-codebattle/online_p.mdx +++ b/src/routes/en/2025-codebattle/online_p.mdx @@ -77,8 +77,8 @@ The program will play **2 matches against each sample AI**, alternating between The strategies of the sample AIs are as follows: -| Battle No. | Description | Code | -| ---------- | ------------------------------------------------------------- | :--- | +| Battle No. | Description | Code | +| ---------- | ------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------ | | 1 / 2 | Always "Passes" on its turn. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI1.rs) | | 3 / 4 | Uses the same strategy as provided in the sample code. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI2.rs) | | 5 / 6 | Uses the strategy of the game simulator sample AI, Pink Bean. | [Code](https://nypc-static.s3.ap-northeast-2.amazonaws.com/2025/mushroom.92e824cffe84/sample-ai/AI3.rs) |