Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
접근방법
뱀과 사다리에 대한 정보를 gameBoard에 담았습니다.
그래프 탐색으로 모든 칸에 대해서 탐색을 진행했으며 100번쨰 칸에 대해 탐색이 되었다면 종료하도록 했습니다.
gameBoard의 값이 0이 아니라면 (뱀이나 사다리인 경우) 게임 보드에 알맞은 카운트를 바로 갱신했습니다. 이미 탐색을 완료한 칸에 대해서는 중복으로 값을 갱신하지 않아 뱀의 경우에 값이 이상하게 세팅되지 않도록 했습니다.