Skip to content

Commit b61f160

Browse files
authored
docs: update content/learn/tutorial-tic-tac-toe.md (#1180)
# 자습서: 틱택토 게임 안녕하세요. 틱택토 게임에 있는 영어 문구를 번역하려다 위의 한글로 번역되어 있는 사항이라 제거 작업 진행했습니다! ## 이전 ![image](https://github.com/user-attachments/assets/da1ba738-a0b7-4560-b01c-f91981b96e3f) ## 이후 ![image](https://github.com/user-attachments/assets/48adaf08-7dd6-4cdc-a85e-54b207cfdeff) ## 필수 확인 사항 - [x] [기여자 행동 강령 규약<sup>Code of Conduct</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CODE_OF_CONDUCT.md) - [x] [기여 가이드라인<sup>Contributing</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CONTRIBUTING.md) - [x] [공통 스타일 가이드<sup>Universal Style Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/universal-style-guide.md) - [x] [번역을 위한 모범 사례<sup>Best Practices for Translation</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/best-practices-for-translation.md) - [x] [번역 용어 정리<sup>Translate Glossary</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/translate-glossary.md) - [x] [`textlint` 가이드<sup>Textlint Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/textlint-guide.md) - [x] [맞춤법 검사<sup>Spelling Check</sup>](https://nara-speller.co.kr/speller/) ## 선택 확인 사항 - [ ] 번역 초안 작성<sup>Draft Translation</sup> - [ ] 리뷰 반영<sup>Resolve Reviews</sup>
1 parent 1cde23e commit b61f160

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: src/content/learn/tutorial-tic-tac-toe.md

-3
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ export default function Square() {
301301
```
302302

303303
_브라우저_ 구역에 아래와 같이 X가 있는 사각형이 표시되어야 합니다.
304-
The _browser_ section should be displaying a square with an X in it like this:
305304

306305
![x가 채워진 사각형](../images/tutorial/x-filled-square.png)
307306

@@ -1412,7 +1411,6 @@ export default function Board() {
14121411
`O``X`를 덮어씌웁니다! 이렇게 하면 게임이 좀 더 흥미로워질 수 있지만 지금은 원래의 규칙을 유지하겠습니다.
14131412
14141413
지금은 `X``O`로 사각형을 표시할 때 먼저 해당 사각형에 이미 `X` 또는 `O`값이 있는지 확인하고 있지 않습니다. *일찍이 돌아와서* 이 문제를 해결하기 위해 사각형에 이미 `X``O`가 있는지 확인하겠습니다. 사각형이 이미 채워져 있는 경우 보드의 state를 업데이트하기 전에 `handleClick` 함수에서 조기에 `return` 하겠습니다.
1415-
When you mark a square with an `X` or an `O` you aren't first checking to see if the square already has an `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has an `X` or an `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
14161414
14171415
```js {2,3,4}
14181416
function handleClick(i) {
@@ -1563,7 +1561,6 @@ function calculateWinner(squares) {
15631561
</Note>
15641562
15651563
`Board` 컴포넌트의 `handleClick` 함수에서 `calculateWinner(squares)`를 호출하여 플레이어가 이겼는지 확인하세요. 이 검사는 사용자가 이미 `X` 또는 `O`가 있는 사각형을 클릭했는지를 확인하는 것과 동시에 수행할 수 있습니다. 두 경우 모두 함수를 조기 반환하겠습니다.
1566-
You will call `calculateWinner(squares)` in the `Board` component's `handleClick` function to check if a player has won. You can perform this check at the same time you check if a user has clicked a square that already has an `X` or an `O`. We'd like to return early in both cases:
15671564
15681565
```js {2}
15691566
function handleClick(i) {

0 commit comments

Comments
 (0)