Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Tic-Tac-Toe Board | Working with 2D Arrays
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Tic-Tac-Toe Board

Opgave

Swipe to start coding

Write a program that represents a Tic-Tac-Toe game board using a two-dimensional array and prints it in a grid format.

  • Use the provided 3x3 char array to represent the game board.
  • Print the board so that each row is displayed on a separate line.
  • Separate columns with " | ".
  • Separate rows with a line of dashes and plus signs ("--+---+--"), except after the last row.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 7
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Tic-Tac-Toe Board

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a program that represents a Tic-Tac-Toe game board using a two-dimensional array and prints it in a grid format.

  • Use the provided 3x3 char array to represent the game board.
  • Print the board so that each row is displayed on a separate line.
  • Separate columns with " | ".
  • Separate rows with a line of dashes and plus signs ("--+---+--"), except after the last row.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 7
single

single

some-alt