Skip to content

[제리] 20221127 "백준 - 뱀과 사다리 게임" 풀이 제출#624

Open
jeremy0405 wants to merge 1 commit intomainfrom
jeremy0405-patch-45
Open

[제리] 20221127 "백준 - 뱀과 사다리 게임" 풀이 제출#624
jeremy0405 wants to merge 1 commit intomainfrom
jeremy0405-patch-45

Conversation

@jeremy0405
Copy link
Collaborator

접근방법

뱀과 사다리에 대한 정보를 gameBoard에 담았습니다.

그래프 탐색으로 모든 칸에 대해서 탐색을 진행했으며 100번쨰 칸에 대해 탐색이 되었다면 종료하도록 했습니다.
gameBoard의 값이 0이 아니라면 (뱀이나 사다리인 경우) 게임 보드에 알맞은 카운트를 바로 갱신했습니다. 이미 탐색을 완료한 칸에 대해서는 중복으로 값을 갱신하지 않아 뱀의 경우에 값이 이상하게 세팅되지 않도록 했습니다.

@jeremy0405 jeremy0405 self-assigned this Nov 27, 2022
@jeremy0405 jeremy0405 linked an issue Nov 27, 2022 that may be closed by this pull request
@jeremy0405 jeremy0405 changed the title [제리] 20221122 "백준 - 뱀과 사다리 게임" 풀이 제출 [제리] 20221127 "백준 - 뱀과 사다리 게임" 풀이 제출 Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2022.11.23] 백준 - 뱀과 사다리 게임

1 participant