Games · verktøy

Gratis tre på rad på nett – spill mot datamaskinen

Velg motstander og bytt på å plassere X og O på brettet med 3×3 ruter. Datamaskinen beregner trekkene lokalt og laster aldri opp trekkene dine.

Kjøres i nettleseren. Ingen opplasting.

Play against the computer or another person. This game stays in your browser.

X har vunnet: 0O har vunnet: 0Uavgjort: 0

You are X. The computer is O.

Om verktøyet

Gratis tre på rad på nett – spill mot datamaskinen sem complicação.

Datamaskinen søker gjennom alle mulige trekk og kan ikke tape. Poengsummene blir værende i denne fanen og nullstilles når du går ut. Det kreves ingen konto, og det finnes ikke nettbasert flerspiller.

Veiledning

Slik bruker du Gratis tre på rad på nett – spill mot datamaskinen

Play noughts and crosses on a three by three board, either against the computer or with a friend on the same device. In computer mode you are X and move first, and the computer answers as O. The computer looks through every possible continuation before it moves, so the best result you can get against it is a draw. Wins and draws are counted while the tab stays open.

Slik gjør du

  1. Choose an opponent from the list: Computer or Two players. Picking a different opponent clears the board and starts a new game, but the score counters stay as they are.
  2. Click a square to place your mark. X always goes first. Against the computer, its O mark appears right after yours, so you do not need to wait or press anything.
  3. Make three in a row across, down or on a diagonal to win. If all nine squares are full with no line, the game is a draw and the draw counter goes up.
  4. Press New game for a fresh board, or Reset score to set the three counters to zero and also start a new game.

Eksempler

Opening in a corner

Du skriver inn
Motstander
Computer
Ditt første trekk
square 1 (top-left corner)
Du får
Datamaskinens svar
rute 5 (midten)

Squares are numbered 1 to 9 from left to right and top to bottom. After a corner opening, the search finds that only the center avoids losing, so it is the only reply the tool ever picks.

Kjørt med verktøyets egen kode.

Opening in the center

Du skriver inn
Motstander
Computer
Ditt første trekk
square 5 (center)
Du får
Datamaskinens svar
one of squares 1, 3, 7 or 9

Four corner replies are equally good. When several moves have the same value, the tool picks one of them at random, so the reply can differ from game to game. An edge square is not among its choices.

Kjørt med verktøyets egen kode.

Can you beat the computer?

Du skriver inn
Kontrollerte spill
6112
Dine trekk
every legal sequence
Datamaskinens trekk
every equally good option
Du får
Dine seire
0
Uavgjort
3584
Datamaskinens seire
2528

A program played out every sequence of your moves against every move the computer might choose. You never won in any of those 6,112 games. The best you can do is a draw, and every slip can give the computer a win.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Play a quick game against a patient opponent that does not get tired.
  • Learn why the center and corners matter by seeing how the computer replies.
  • Pass time with a friend using one phone or computer.
  • Show children how to look ahead one or two moves.

Begrensninger

  • You cannot win against the computer, because it cannot lose. A draw is the best result. There is no easier setting, no way to choose O, and no way to let the computer move first.
  • Scores are kept only while the tab stays open. A reload or leaving the page sets all three counters back to zero.
  • Play happens on one device. There is no online multiplayer, no account, no saved games and no game history.
  • The board is only the classic three by three grid. There are no larger boards and no variants such as four in a row.

Tips

  • Against the computer, aim for a draw, and if you want a game you can win, switch to Two players and play a friend.
  • In two-player mode, agree who starts, because X always moves first and the app does not swap sides after a game.
  • Try the center as your opening in one game and a corner in the next, and notice how the computer's replies differ.

Vanlige spørsmål

Sobre Gratis tre på rad på nett – spill mot datamaskinen.

Can I beat the computer at tic-tac-toe?

No. The page states that the computer uses a complete search of possible moves and cannot lose. A check of every possible line of play found no win for the human player. A draw is the best result you can reach.

How does the computer choose its move?

It tries every legal move for itself and every reply of yours, all the way to the end of the game, and scores each ending. Quick wins score higher than slow ones. It then picks randomly among the moves with the best score.

Why does the computer sometimes play different replies to the same move?

When several replies have the same best value, it chooses one at random. For example, after you take the center it can answer in any corner. After a corner opening, only the center is best, so that reply never varies.

Can two people play on the same screen?

Yes. Choose Two players, and X and O take turns on the same device. The status line shows whose turn it is. Wins and draws are counted in the same score counters, so reset them if you start a new match.

Can I play as O or let the computer go first?

No. In computer mode you are always X and you move first, and the computer is always O. If you want to go second, pick Two players and let the other person start.

Does the game save my score?

No. The page says scores stay in this tab and reset when you leave. There is no account and no saved history, so a reload starts with all counters at zero.

Does it use the internet to play?

No. The computer thinks locally in your browser and does not upload your moves. The page says there is no online multiplayer.

Hvordan bruker du Tre på rad på nett?

Velg motstander og bytt på å plassere X og O på brettet med 3×3 ruter. Datamaskinen beregner trekkene lokalt og laster aldri opp trekkene dine.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.