You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/tutorial-tic-tac-toe.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2725,16 +2725,16 @@ Et enää tarvitse `xIsNext` tilan määrittelyä tai kutsuja `setXIsNext`. Nyt,
2725
2725
2726
2726
### Lopetus {/*wrapping-up*/}
2727
2727
2728
-
Congratulations! You've created a tic-tac-toe game that:
2728
+
Onneksi olkoon! Olet luonut ristinolla-pelin, joka:
2729
2729
2730
-
- Lets you play tic-tac-toe,
2731
-
- Indicates when a player has won the game,
2732
-
- Stores a game's history as a game progresses,
2733
-
- Allows players to review a game's history and see previous versions of a game's board.
2730
+
- Antaa sinun pelata ristinollaa,
2731
+
- Ilmoittaa kun pelaaja on voittanut peli,
2732
+
- Tallentaa pelin historian pelin edetessä,
2733
+
- Antaa pelaajan palata takaisin pelin historiassa ja katsoa edellisiä versioita pelin taulukosta.
2734
2734
2735
-
Nice work! We hope you now feel like you have a decent grasp of how React works.
2735
+
Hyvää työtä! Toivottavasti tunnet nyt, että sinulla on hyvä käsitys siitä miten React toimii.
2736
2736
2737
-
Check out the final result here:
2737
+
Katso lopullinen tulos täältä:
2738
2738
2739
2739
<Sandpack>
2740
2740
@@ -2903,12 +2903,12 @@ body {
2903
2903
2904
2904
</Sandpack>
2905
2905
2906
-
If you have extra time or want to practice your new React skills, here are some ideas for improvements that you could make to the tic-tac-toe game, listed in order of increasing difficulty:
2906
+
Jos sinulla on ylimääräistä aikaa tai haluat harjoitella uusia React taitojasi, tässä on joitain ideoita parannuksista, joita voisit tehdä ristinolla-peliin, listattuna vaikeusjärjestyksessä:
2907
2907
2908
-
1. For the current move only, show "You are at move #..." instead of a button.
2909
-
1. Rewrite`Board`to use two loops to make the squares instead of hardcoding them.
2910
-
1. Add a toggle button that lets you sort the moves in either ascending or descending order.
2911
-
1. When someone wins, highlight the three squares that caused the win (and when no one wins, display a message about the result being a draw).
2912
-
1. Display the location for each move in the format (row, col) in the move history list.
2908
+
1. Nykyiselle siirrolle, näytä "Olet siirrossa #..." sen sijaan, että näyttäisit painikkeen.
2909
+
1. Kirjoita`Board`käyttämään kahta silmukkaa tehdäksesi ruudukon sen sijaan, että kovakoodaisit ne.
2910
+
1. Lisää painike, joka antaa sinun järjestää siirrot joko nousevaan tai laskevaan järjestykseen.
2911
+
1. Kun joku voittaa, korosta kolme ruutua, jotka aiheuttivat voiton (ja kun kukaan ei voita, näytä viesti tuloksesta olevan tasapeli).
2912
+
1. Näytä jokaisen siirron sijainti muodossa (rivi, sarake) siirtohistorian listassa.
2913
2913
2914
-
Throughout this tutorial, you've touched on React concepts including elements, components, props, and state. Now that you've seen how these concepts work when building a game, check out [Thinking in React](/learn/thinking-in-react) to see how the same React concepts work when build an app's UI.
2914
+
Tämän oppaan aikana, olet käsitellyt Reactin käsitteitä, mukaan lukien elementit, komponentit, propsit ja tila. Nyt kun olet nähnyt miten nämä käsitteet toimivat peliä rakentaessa, katso [Thinking in React](/learn/thinking-in-react) nähdäksesi miten samat Reactin käsitteet toimivat kun rakennat sovelluksen käyttöliittymää.
0 commit comments